fixes bug#8834
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@69978 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e43e48f580
commit
92b6dc6c50
|
@ -0,0 +1,16 @@
|
|||
declare
|
||||
valor_atual number := 0;
|
||||
begin
|
||||
begin
|
||||
execute immediate 'alter table control_efectivo modify (controlefectivo_id number(8,0))';
|
||||
|
||||
exception when others then null;
|
||||
end;
|
||||
begin
|
||||
execute immediate 'drop sequence CONTROL_EFECTIVO_SEQ';
|
||||
|
||||
execute immediate 'select max(controlefectivo_id)+1 from CONTROL_EFECTIVO' INTO valor_atual;
|
||||
|
||||
execute immediate 'CREATE SEQUENCE CONTROL_EFECTIVO_SEQ MINVALUE 0 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH ' || valor_atual || ' CACHE 20 NOORDER NOCYCLE' ;
|
||||
end;
|
||||
end;
|
Loading…
Reference in New Issue