From 80fdbba3980d24754817855e9c34931c7d4547e3 Mon Sep 17 00:00:00 2001 From: lucassilverio Date: Thu, 21 May 2020 12:39:47 +0000 Subject: [PATCH] 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 --- src/db/migration/V20200520_0934__mantis19260.sql | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/db/migration/V20200520_0934__mantis19260.sql b/src/db/migration/V20200520_0934__mantis19260.sql index dd77551cb..4a2b3bdb5 100644 --- a/src/db/migration/V20200520_0934__mantis19260.sql +++ b/src/db/migration/V20200520_0934__mantis19260.sql @@ -5,15 +5,11 @@ begin execute immediate 'ALTER TABLE CATEGORIA ADD (INDVENDEAPI NUMBER(1) DEFAULT 0 NOT NULL)'; exception when object_exists then null; end; - +/ declare - dup_val_on_index exception; - except_02291 exception; - pragma exception_init (dup_val_on_index , -00001); - pragma exception_init (except_02291 , -02291); + object_exists exception; + pragma exception_init (object_exists , -00955); begin - execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; - exception - when dup_val_on_index then null; - when except_02291 then null; + execute immediate 'UPDATE CATEGORIA SET INDVENDEAPI = 1 WHERE CATEGORIA_ID = 1'; + exception when object_exists then null; end; \ No newline at end of file