From 6a486cb3f1b5902ce5a5574410ab9e37a4344e8e Mon Sep 17 00:00:00 2001 From: valdevir Date: Thu, 6 Jul 2017 22:42:20 +0000 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20exce=C3=A7=C3=A3o=20Flyway?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@71100 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170621_0832__mantis9138.sql | 2 +- src/db/migration/V20170627_1620__mantis9150.sql | 2 +- src/db/migration/V20170702_1516__mantis9295.sql | 6 +++--- src/db/migration/V20170704_1505__mantis9320.sql | 2 +- src/db/migration/V20170704_1650__mantis9290.sql | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/db/migration/V20170621_0832__mantis9138.sql b/src/db/migration/V20170621_0832__mantis9138.sql index f04fa077d..58bf812c3 100644 --- a/src/db/migration/V20170621_0832__mantis9138.sql +++ b/src/db/migration/V20170621_0832__mantis9138.sql @@ -8,7 +8,7 @@ end; / declare object_exists exception; - pragma exception_init (object_exists , -00955); + pragma exception_init (object_exists , -01442); begin execute immediate 'ALTER TABLE USUARIO MODIFY (TEMPODEVOLUCAOPASSAGEM DEFAULT 0 NOT NULL)'; exception when object_exists then null; diff --git a/src/db/migration/V20170627_1620__mantis9150.sql b/src/db/migration/V20170627_1620__mantis9150.sql index 49abb0850..71e9aecab 100644 --- a/src/db/migration/V20170627_1620__mantis9150.sql +++ b/src/db/migration/V20170627_1620__mantis9150.sql @@ -1,6 +1,6 @@ declare object_exists exception; - pragma exception_init (object_exists , -00955); + pragma exception_init (object_exists , -01430); begin execute immediate 'ALTER TABLE EVENTO_EXTRA ADD (SERIEIMPFISCAL VARCHAR2(6))'; exception when object_exists then null; diff --git a/src/db/migration/V20170702_1516__mantis9295.sql b/src/db/migration/V20170702_1516__mantis9295.sql index 30ae94d50..89b4b0820 100644 --- a/src/db/migration/V20170702_1516__mantis9295.sql +++ b/src/db/migration/V20170702_1516__mantis9295.sql @@ -1,7 +1,7 @@ declare - object_exists exception; - pragma exception_init (object_exists , -01430); + ja_existe exception; + pragma exception_init (ja_existe , -00001); begin execute immediate 'INSERT INTO USUARIO (USUARIO_ID, NOMBUSUARIO, CVEUSUARIO, activo) VALUES (-1, ''TODOS'', ''TODOS'', 1)'; - exception when object_exists then null; + exception when ja_existe then null; end; \ No newline at end of file diff --git a/src/db/migration/V20170704_1505__mantis9320.sql b/src/db/migration/V20170704_1505__mantis9320.sql index 5bb5a43b5..bc44b7338 100644 --- a/src/db/migration/V20170704_1505__mantis9320.sql +++ b/src/db/migration/V20170704_1505__mantis9320.sql @@ -16,7 +16,7 @@ end; declare object_exists exception; - pragma exception_init (object_exists , -01451); + pragma exception_init (object_exists , -01442); begin execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDSEGUNDA NOT NULL)'; execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDTERCA NOT NULL)'; diff --git a/src/db/migration/V20170704_1650__mantis9290.sql b/src/db/migration/V20170704_1650__mantis9290.sql index 2fe3c9986..cb8a27d71 100644 --- a/src/db/migration/V20170704_1650__mantis9290.sql +++ b/src/db/migration/V20170704_1650__mantis9290.sql @@ -1,6 +1,6 @@ declare object_exists exception; - pragma exception_init (object_exists , -01451); + pragma exception_init (object_exists , -01430); begin execute immediate 'ALTER TABLE USUARIO ADD (INDEXPIRASENHA NUMBER(1) DEFAULT 0 NOT NULL)'; exception when object_exists then null;