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;