diff --git a/pom.xml b/pom.xml index 1653d439d..e678da497 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.93.0 + 1.93.1 diff --git a/src/db/migration/V20240823_1815__AL-4506.sql b/src/db/migration/V20240823_1815__AL-4506.sql new file mode 100644 index 000000000..a030ccd90 --- /dev/null +++ b/src/db/migration/V20240823_1815__AL-4506.sql @@ -0,0 +1,13 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'INSERT INTO TIPO_EVENTO_EXTRA (TIPOEVENTOEXTRA_ID,INDTIPO,IMPMAX,INDVALIDADOCUMENTO,INDBOLETO,PORCIVA,USUARIO_ID,FECMODIF,ACTIVO,INDOPERACION,DESCTIPOEVENTO, +CVETIPOEVENTO,INDQUANTVIASIMPRIMIR) VALUES (TIPO_EVENTO_EXTRA_SEQ.NEXTVAL,''1'',9999999,0,0,0,1,SYSDATE,1,1,''ESTAMPILLA'',''ESTAMPILLA'',1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; diff --git a/src/db/migration/V20240902_1157__AL-4505.sql b/src/db/migration/V20240902_1157__AL-4505.sql index 5c254f2ee..5f66099e3 100644 --- a/src/db/migration/V20240902_1157__AL-4505.sql +++ b/src/db/migration/V20240902_1157__AL-4505.sql @@ -1,15 +1,15 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); -begin - execute immediate 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.''; - exception when column_exists then null; -end; -/ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); begin execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEADICIONAL NUMBER(10,2))'; - exception when column_exists then null; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; end; \ No newline at end of file diff --git a/src/db/migration/V20240902_1159__AL-4505.sql b/src/db/migration/V20240902_1159__AL-4505.sql index ebde707ff..fcecc2b97 100644 --- a/src/db/migration/V20240902_1159__AL-4505.sql +++ b/src/db/migration/V20240902_1159__AL-4505.sql @@ -1,7 +1,15 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); begin execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEINICIAL NUMBER(10,2))'; - exception when column_exists then null; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; end; \ No newline at end of file diff --git a/src/db/migration/V20240902_1201__AL-4505.sql b/src/db/migration/V20240902_1201__AL-4505.sql index ffa5291d5..ac1a6a0d0 100644 --- a/src/db/migration/V20240902_1201__AL-4505.sql +++ b/src/db/migration/V20240902_1201__AL-4505.sql @@ -1,15 +1,15 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); -begin - execute immediate 'ALTER SESSION SET NLS_NUMERIC_CHARACTERS = ',.''; - exception when column_exists then null; -end; -/ -declare - column_exists exception; - pragma exception_init (column_exists , -01451); +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); begin execute immediate 'ALTER TABLE PARAM_RECOLECCION MODIFY (IMPORTEBASE NUMBER(10,2))'; - exception when column_exists then null; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; end; \ No newline at end of file diff --git a/src/db/migration/V20240902_1635__AL-4506.sql b/src/db/migration/V20240902_1635__AL-4506.sql index c1dbb19e5..838eb2825 100644 --- a/src/db/migration/V20240902_1635__AL-4506.sql +++ b/src/db/migration/V20240902_1635__AL-4506.sql @@ -10,7 +10,7 @@ DECLARE object_exists EXCEPTION; pragma exception_init(object_exists, -00955); BEGIN - EXECUTE IMMEDIATE 'CREATE TABLE CONF_PRODUCTO_PARADA ( + EXECUTE IMMEDIATE 'CREATE TABLE CONFIGURACION_PRODUCTO_PARADA ( CONF_PRODUCTO_PARADA_ID NUMBER(7,0) NOT NULL, CONFIGURACIONPRODUCTO_ID NUMBER(7,0) NOT NULL, PARADA_ID NUMBER(7,0) NOT NULL,