From b661b790d3a0a95030705eeab13b5a85850d0c27 Mon Sep 17 00:00:00 2001 From: "lucas.taia" Date: Fri, 16 Dec 2022 19:12:20 -0300 Subject: [PATCH 1/2] AL-1231 --- src/db/migration/V20221216_1120__AL1231.sql | 58 +++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/db/migration/V20221216_1120__AL1231.sql diff --git a/src/db/migration/V20221216_1120__AL1231.sql b/src/db/migration/V20221216_1120__AL1231.sql new file mode 100644 index 000000000..2ba9de243 --- /dev/null +++ b/src/db/migration/V20221216_1120__AL1231.sql @@ -0,0 +1,58 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE ADYEN_SERVICE_SEQ MINVALUE 1 MAXVALUE 9999999 INCREMENT BY 1 START WITH 1 NOCACHE ORDER CYCLE'; + exception when object_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESTACION_SITEF ADD (NUMERODESERIE VARCHAR2(100) )'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESTACION_SITEF ADD (DESCRICAO VARCHAR2(100) )'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE MONEDA ADD (SIGLA VARCHAR2(3) )'; + exception when column_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate +'CREATE TABLE EMPRESA_ADYEN_CONFIG +( + EMPRESAADYENCONFIG_ID NUMBER(8, 0) NOT NULL +, EMPRESA_ID NUMBER(7, 0) +, APIKEY VARCHAR2(255) +, INDPRODUCAO NUMBER(1, 0) +, ACTIVO NUMBER(1, 0) +, FECMODIF DATE +, USUARIO_ID NUMBER(7, 0) +) '; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE "EMPRESA_ADYEN_CONFIG_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER'; + exception when object_exists then null; +end; From 038f951fadb0641116c873dcf25213bc6e366bde Mon Sep 17 00:00:00 2001 From: "lucas.taia" Date: Fri, 16 Dec 2022 19:32:51 -0300 Subject: [PATCH 2/2] AL-1231 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5002bba8b..13504c77c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.0.3 + 1.0.4