[BPe] - Sequencial do número do BPe
bug#13647 dev:trevezani qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@90345 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5174af6acd
commit
808898d12a
|
@ -0,0 +1,15 @@
|
|||
declare
|
||||
column_exists exception;
|
||||
pragma exception_init (column_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE EMPRESA ADD INDREAPROVEITARNUMBPEREJEITADO NUMBER(1,0) DEFAULT 0';
|
||||
exception when column_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00001);
|
||||
begin
|
||||
execute immediate 'UPDATE EMPRESA SET INDREAPROVEITARNUMBPEREJEITADO = 0';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue