diff --git a/src/db/migration/V20170717_1021__mantis9296.sql b/src/db/migration/V20170717_1021__mantis9296.sql index e1b3f0944..475db7c9b 100644 --- a/src/db/migration/V20170717_1021__mantis9296.sql +++ b/src/db/migration/V20170717_1021__mantis9296.sql @@ -1,6 +1,6 @@ declare object_exists exception; - pragma exception_init (object_exists , -00955); + pragma exception_init (object_exists , -00001); begin execute immediate 'INSERT INTO TIPO_EVENTO_EXTRA_PTOVTA(TIPOEVENTOEXTRAPTOVTA_ID,TIPOEVENTOEXTRA_ID,PUNTOVENTA_ID,ACTIVO,FECMODIF,USUARIO_ID) diff --git a/src/db/migration/V20170721_1506__mantis9288.sql b/src/db/migration/V20170721_1506__mantis9288.sql index 3c9c7323f..dae48447a 100644 --- a/src/db/migration/V20170721_1506__mantis9288.sql +++ b/src/db/migration/V20170721_1506__mantis9288.sql @@ -1,7 +1,7 @@ declare - object_exists exception; - pragma exception_init (object_exists , -01430); + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); begin execute immediate 'INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID, SISTEMA_ID, NOMBFUNCION, DESCRUTA, ACTIVO, FECMODIF, USUARIO_ID) VALUES (FUNCION_SISTEMA_SEQ.NEXTVAL ,1, ''ADM > RELATORIOS >> RELATORIO FORMA PAGAMENTO AGENCIA'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOFORMAPAGAMENTOAGENCIACONTROLLER'',1,''13/07/2017'',1)'; - exception when object_exists then null; + exception when dup_val_on_index then null; end; \ No newline at end of file