diff --git a/src/db/migration/V20190411_1627__mantis13774.sql b/src/db/migration/V20190411_1627__mantis13774.sql index b5aa03773..75cc74737 100644 --- a/src/db/migration/V20190411_1627__mantis13774.sql +++ b/src/db/migration/V20190411_1627__mantis13774.sql @@ -1,6 +1,6 @@ declare - object_exists exception; - pragma exception_init (object_exists , -00955); + table_exists exception; + pragma exception_init (table_exists , -00955); begin execute immediate 'CREATE TABLE INTEGRACAO_TOTVS_CAJA ( @@ -12,5 +12,5 @@ begin , CONSTRAINT INTEGRACAO_TOTVS_CAJA_PK PRIMARY KEY ( INTEGRACAOCAJA_ID ) )'; - exception when object_exists then null; + exception when table_exists then null; end; \ No newline at end of file diff --git a/src/db/migration/V20190418_1902__mantis13775.sql b/src/db/migration/V20190418_1902__mantis13775.sql index e7402ddf4..fa7f61dac 100644 --- a/src/db/migration/V20190418_1902__mantis13775.sql +++ b/src/db/migration/V20190418_1902__mantis13775.sql @@ -1,10 +1,10 @@ declare - object_exists exception; - pragma exception_init (object_exists , -00955); + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); begin execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE, VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''CRON_ROTINA_REINTEGRACAO_BILHETE_TOTVS'',''CRON_ROTINA_REINTEGRACAO_BILHETE_TOTVS'', 1,null,null,''0'',sysdate,''1'')'; - exception when object_exists then null; + exception when dup_val_on_index then null; end; \ No newline at end of file diff --git a/src/db/migration/V20190418_1903__mantis13776.sql b/src/db/migration/V20190418_1903__mantis13776.sql index 25dd5a478..c8980eb38 100644 --- a/src/db/migration/V20190418_1903__mantis13776.sql +++ b/src/db/migration/V20190418_1903__mantis13776.sql @@ -1,10 +1,10 @@ declare - object_exists exception; - pragma exception_init (object_exists , -00955); + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); begin execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE, VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''PATH_LOG_REINTEGRACAO_TOTVS'',''PATH_LOG_REINTEGRACAO_TOTVS'', 1,''/dados/jboss/log/reintegracao/'',null,''1'',sysdate,''1'')'; - exception when object_exists then null; + exception when dup_val_on_index then null; end; \ No newline at end of file diff --git a/src/db/migration/V20190508_1350__mantis13931.sql b/src/db/migration/V20190508_1350__mantis13931.sql index 2546aa382..f10863ab1 100644 --- a/src/db/migration/V20190508_1350__mantis13931.sql +++ b/src/db/migration/V20190508_1350__mantis13931.sql @@ -1,10 +1,10 @@ declare - object_exists exception; - pragma exception_init (object_exists , -00955); + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); begin execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE, VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''CODIGO_TRANSMISSAO_SANTANDER'',''CODIGO_TRANSMISSAO_SANTANDER'', 1,null,null,''1'',sysdate,''1'')'; - exception when object_exists then null; + exception when dup_val_on_index then null; end; \ No newline at end of file