From ca4beabf65c6f5335afca6ecec3d6fd6cdf6df11 Mon Sep 17 00:00:00 2001 From: Fabio Date: Tue, 21 May 2024 18:45:31 -0300 Subject: [PATCH] =?UTF-8?q?Adi=C3=A7=C3=A3o=20do=20cadastro=20de=20Alias?= =?UTF-8?q?=20de=20classe=20bug#AL-3857?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/db/migration/V20240502_1619__AL-3857.sql | 25 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240502_1619__AL-3857.sql diff --git a/pom.xml b/pom.xml index 111a51ed8..483041e70 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.44.0 + 1.45.0 diff --git a/src/db/migration/V20240502_1619__AL-3857.sql b/src/db/migration/V20240502_1619__AL-3857.sql new file mode 100644 index 000000000..317774add --- /dev/null +++ b/src/db/migration/V20240502_1619__AL-3857.sql @@ -0,0 +1,25 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE TABLE ALIAS_CLASSE_SERVICO + ( + "ALIASCLASSE_ID" NUMBER(7,0) NOT NULL ENABLE, + "CLASSE_ID" NUMBER(7,0), + "ALIAS_ID" NUMBER(7,0), + "ORGAOCONCEDENTE_ID" NUMBER(7,0), + "MENSAGEM" VARCHAR2(150) NULL, + "USUARIO_ID" NUMBER(7,0), + "ACTIVO" NUMBER(1,0), + "FECMODIF" DATE ) + '; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE "ALIAS_CLASSE_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; \ No newline at end of file