From 17fccbdf89236fb72d5da04c1d7a7294a8944ec2 Mon Sep 17 00:00:00 2001 From: Fernando Abimael Alvarez Uc Date: Wed, 28 Aug 2024 10:18:08 -0600 Subject: [PATCH 1/3] Fixes bug#AL-4549 --- pom.xml | 2 +- src/db/migration/V20240828_1008__AL-4549.sql | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240828_1008__AL-4549.sql diff --git a/pom.xml b/pom.xml index acca05bfd..b501c199d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.88.0 + 1.88.1 diff --git a/src/db/migration/V20240828_1008__AL-4549.sql b/src/db/migration/V20240828_1008__AL-4549.sql new file mode 100644 index 000000000..6c5d68857 --- /dev/null +++ b/src/db/migration/V20240828_1008__AL-4549.sql @@ -0,0 +1,12 @@ +declare + object_exists exception; + except_00957 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE SOLICITUD_EXPRESO RENAME COLUMN ORMAPAGO_ID TO FORMAPAGO_ID'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file From c64cf61d14f6f39c4a4a94443be8bf1fa01a7049 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Wed, 28 Aug 2024 14:45:05 -0300 Subject: [PATCH 2/3] Acertando o script feat bug#AL-4273 --- pom.xml | 2 +- src/db/migration/V20240828_1143__AL-4273.sql | 31 ++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240828_1143__AL-4273.sql diff --git a/pom.xml b/pom.xml index b501c199d..cbee37220 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.88.1 + 1.88.2 diff --git a/src/db/migration/V20240828_1143__AL-4273.sql b/src/db/migration/V20240828_1143__AL-4273.sql new file mode 100644 index 000000000..df6b1d7a5 --- /dev/null +++ b/src/db/migration/V20240828_1143__AL-4273.sql @@ -0,0 +1,31 @@ +declare + table_exists exception; + pragma exception_init (table_exists , -00955); +begin + execute immediate + 'CREATE TABLE COMPROVANTE_PASSAGEM ( + COMPROVANTEPASSAGEM_ID NUMBER(7,0) NOT NULL ENABLE, + EMPRESA_ID NUMBER(7,0), + NUMOPERACION VARCHAR2(36 BYTE), + DOCUMENTO BLOB, + ACTIVO NUMBER(1,0), + FECMODIF DATE, + USUARIO_ID NUMBER(7,0), + PRIMARY KEY (COMPROVANTEPASSAGEM_ID), + FOREIGN KEY (EMPRESA_ID) + REFERENCES EMPRESA (EMPRESA_ID) ENABLE + ) '; + + exception when table_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE COMPROVANTE_PASSAGEM_SEQ'; + exception when object_exists then null; +end; +/ \ No newline at end of file From 163aebe7034080324f63c1ad2c5db5e139efc691 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 28 Aug 2024 16:56:05 -0300 Subject: [PATCH 3/3] AL-4466 --- pom.xml | 2 +- src/db/migration/V20240828_1639__AL-4466.sql | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240828_1639__AL-4466.sql diff --git a/pom.xml b/pom.xml index cbee37220..0a70e49da 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.88.2 + 1.89.0 diff --git a/src/db/migration/V20240828_1639__AL-4466.sql b/src/db/migration/V20240828_1639__AL-4466.sql new file mode 100644 index 000000000..34cb13507 --- /dev/null +++ b/src/db/migration/V20240828_1639__AL-4466.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA ADD (IMPRESIONLAYOUTEMAILCONFIG_ID NUMBER(7) )'; + exception when column_exists then null; +end; +/