[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-87c2c4800839
master
alberto 2019-02-27 21:57:38 +00:00
parent 5174af6acd
commit 808898d12a
1 changed files with 15 additions and 0 deletions

View File

@ -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;