merge with rel205
This commit is contained in:
parent
bbbd978f92
commit
9af16485ae
8 changed files with 206 additions and 146 deletions
|
|
@ -99,5 +99,24 @@ CREATE or replace FUNCTION update_quick_code(njft_id integer, tav_text text) RET
|
|||
end;
|
||||
$body$
|
||||
LANGUAGE plpgsql;
|
||||
alter table parm_periode alter p_end set not null;
|
||||
|
||||
create or replace function drop_it (p_constraint varchar)
|
||||
returns void as
|
||||
$body$
|
||||
declare
|
||||
-- drop a constraint if it exists
|
||||
nCount integer;
|
||||
begin
|
||||
select count(*) into nCount from pg_constraint where conname=p_constraint;
|
||||
if nCount = 1 then
|
||||
execute 'alter table parm_periode drop constraint '||p_constraint ;
|
||||
end if;
|
||||
end;
|
||||
$body$ language plpgsql;
|
||||
|
||||
select drop_it('parm_periode_p_start_key');
|
||||
create unique index x_periode on parm_periode (p_start,p_end);
|
||||
|
||||
update version set val=21;
|
||||
commit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue