From d11b718dd93f6f43a8b6ca2d84fcb78e932f6e23 Mon Sep 17 00:00:00 2001 From: "aristides@rjconsultores.com.br" Date: Tue, 7 Feb 2023 08:27:06 -0300 Subject: [PATCH] AL-1975 --- pom.xml | 2 +- src/db/migration/V20230203_1957__AL1975.sql | 13 +++++++++++++ src/db/migration/V20230206_1423__AL1975.sql | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20230203_1957__AL1975.sql create mode 100644 src/db/migration/V20230206_1423__AL1975.sql diff --git a/pom.xml b/pom.xml index 4108b4487..44708d24b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.0.19 + 1.0.20 diff --git a/src/db/migration/V20230203_1957__AL1975.sql b/src/db/migration/V20230203_1957__AL1975.sql new file mode 100644 index 000000000..51f92dbc6 --- /dev/null +++ b/src/db/migration/V20230203_1957__AL1975.sql @@ -0,0 +1,13 @@ +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (TAXACONVENIENCIAPORC NUMBER(7,2))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (MAXTAXACONVENIENCIAPORTARIFA NUMBER(7,2))'; + exception when column_exists then null; +end; +/ \ No newline at end of file diff --git a/src/db/migration/V20230206_1423__AL1975.sql b/src/db/migration/V20230206_1423__AL1975.sql new file mode 100644 index 000000000..234ce0fff --- /dev/null +++ b/src/db/migration/V20230206_1423__AL1975.sql @@ -0,0 +1,4 @@ +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (MENSAGEMRECIBOTXCONVENIENCIA VARCHAR2(80))'; + exception when column_exists then null; +end; \ No newline at end of file