diff --git a/pom.xml b/pom.xml index 7f91d4056..c611698bd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.74.0 + 1.75.0 diff --git a/src/db/migration/V20240710_1052__AL-4343.sql b/src/db/migration/V20240710_1052__AL-4343.sql deleted file mode 100644 index 30c1c8f91..000000000 --- a/src/db/migration/V20240710_1052__AL-4343.sql +++ /dev/null @@ -1,24 +0,0 @@ -declare - object_exists exception; - pragma exception_init (object_exists , -00955); -begin - execute immediate 'CREATE TABLE TIPO_LANCAMENTO_CAIXA ( - TIPO_LANCAMENTO_ID NUMBER(7,0) PRIMARY KEY, - NOME_LANCAMENTO VARCHAR2(255), - INDACRESCIMO NUMBER(1,0), - ACTIVO NUMBER(1,0), - USUARIO_ID NUMBER(7,0), - FECMODIF DATE, - CONSTRAINT fk_usuario_tipo_lancamento FOREIGN KEY (USUARIO_ID) REFERENCES USUARIO(USUARIO_ID) - )'; - exception when object_exists then null; -end; -/ -declare - object_exists exception; - pragma exception_init (object_exists , -00955); -begin - execute immediate 'CREATE SEQUENCE "TIPO_LANCAMENTO_CAIXA_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; - exception when object_exists then null; -end; -/ diff --git a/src/db/migration/V20240718_1844__AL-4343.sql b/src/db/migration/V20240718_1844__AL-4343.sql new file mode 100644 index 000000000..a61f52fa4 --- /dev/null +++ b/src/db/migration/V20240718_1844__AL-4343.sql @@ -0,0 +1,15 @@ +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 CAIXA_CONTRATO ADD OBSERVACAO VARCHAR2(150)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; diff --git a/src/db/migration/V20240719_1127__AL-4343.sql b/src/db/migration/V20240719_1127__AL-4343.sql new file mode 100644 index 000000000..56af4c4d0 --- /dev/null +++ b/src/db/migration/V20240719_1127__AL-4343.sql @@ -0,0 +1,16 @@ +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 CAIXA_CONTRATO DROP CONSTRAINT FK_TIPO_LANCAMENTO_CAIXA_CONTRATO'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; +/