fixes bug#19260

dev: xxx
qua: xxx

Corrigindo script

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@101711 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucassilverio 2020-05-21 12:39:47 +00:00
parent 484eff08ac
commit 80fdbba398
1 changed files with 5 additions and 9 deletions

View File

@ -5,15 +5,11 @@ begin
execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)'; execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)';
exception when object_exists then null; exception when object_exists then null;
end; end;
/
declare declare
dup_val_on_index exception; object_exists exception;
except_02291 exception; pragma exception_init (object_exists , -00955);
pragma exception_init (dup_val_on_index , -00001);
pragma exception_init (except_02291 , -02291);
begin begin
execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1';
exception exception when object_exists then null;
when dup_val_on_index then null;
when except_02291 then null;
end; end;