From 0aeb256500bcfbdda25aa3fa1b95cfe15650a109 Mon Sep 17 00:00:00 2001 From: "celio.souza" Date: Tue, 28 Nov 2023 16:56:11 -0300 Subject: [PATCH] fixes bug#AL-2912 --- pom.xml | 2 +- src/db/migration/V20231122_1549__AL2912.sql | 10 ++++++++++ src/db/postgresql/migration/V20231122_0941__AL2912.sql | 10 ++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20231122_1549__AL2912.sql create mode 100644 src/db/postgresql/migration/V20231122_0941__AL2912.sql diff --git a/pom.xml b/pom.xml index 7439480db..ea26e83e6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.21.1 + 1.23.1 diff --git a/src/db/migration/V20231122_1549__AL2912.sql b/src/db/migration/V20231122_1549__AL2912.sql new file mode 100644 index 000000000..07afa4b4d --- /dev/null +++ b/src/db/migration/V20231122_1549__AL2912.sql @@ -0,0 +1,10 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO ADD (COMISSAO_GAP NUMBER(12,2), + RECEITA_BRUTA_OUTROS NUMBER(12,2), + RECEITA_BRUTA_TARIFA NUMBER(12,2), + TARIFA_ENTREGAS_PASSAGEM NUMBER(12,2))'; + exception when column_exists then null; +end; diff --git a/src/db/postgresql/migration/V20231122_0941__AL2912.sql b/src/db/postgresql/migration/V20231122_0941__AL2912.sql new file mode 100644 index 000000000..6954a1d68 --- /dev/null +++ b/src/db/postgresql/migration/V20231122_0941__AL2912.sql @@ -0,0 +1,10 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE COMISSAO ADD (COMISSAO_GAP NUMBER(12,2), + RECEITA_BRUTA_OUTROS NUMBER(12,2), + RECEITA_BRUTA_TARIFA NUMBER(12,2), + TARIFA_ENTREGAS_PASSAGEM NUMBER(12,2))'; + exception when object_exists then null; +end; \ No newline at end of file