From ceebe82501637122d9c73b38d67553e3a73228f2 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 8 Jul 2024 22:25:27 -0300 Subject: [PATCH] AL-4273 nova tela comprovante de passagem --- pom.xml | 2 +- src/db/migration/V20240708_1937__AL-4273.sql | 27 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240708_1937__AL-4273.sql diff --git a/pom.xml b/pom.xml index d390c88af..c74166c41 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.60.0 + 1.61.0 diff --git a/src/db/migration/V20240708_1937__AL-4273.sql b/src/db/migration/V20240708_1937__AL-4273.sql new file mode 100644 index 000000000..5338f67c7 --- /dev/null +++ b/src/db/migration/V20240708_1937__AL-4273.sql @@ -0,0 +1,27 @@ +declare + table_exists exception; + pragma exception_init (table_exists , -00955); +begin + execute immediate + 'CREATE TABLE EMPRESA_COMPPASSAGEM_CONFIG ( + EMPRESACOMPPASSAGEMCONFIG_ID NUMBER(7) NOT NULL, + EMPRESA_ID NUMBER(7,0), + CHAVE VARCHAR2(100) NULL, + VALOR VARCHAR2(150) NULL, + ACTIVO NUMBER(1), + FECMODIF DATE, + USUARIO_ID NUMBER(7), + PRIMARY KEY ( EMPRESACOMPPASSAGEMCONFIG_ID ) + )'; + + exception when table_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE "EMPRESA_COMPPASSAG_CONFIG_SEQ" INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE'; + exception when object_exists then null; +end; +/ \ No newline at end of file