From a6538b458fbc2f53cddb55f35abcac23b2e404df Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 31 Mar 2023 09:40:53 -0300 Subject: [PATCH 1/3] fixes bug #AL-2209 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 24b2d254e..4d7f93258 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.0.30 + 1.0.31 From 56812b6605e11ad3b83051e6636552caaec7bf44 Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 31 Mar 2023 09:41:10 -0300 Subject: [PATCH 2/3] fixes bug #AL-2209 --- src/db/migration/V20230331_0808__AL-2209.sql | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/db/migration/V20230331_0808__AL-2209.sql diff --git a/src/db/migration/V20230331_0808__AL-2209.sql b/src/db/migration/V20230331_0808__AL-2209.sql new file mode 100644 index 000000000..5a858f796 --- /dev/null +++ b/src/db/migration/V20230331_0808__AL-2209.sql @@ -0,0 +1,23 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (INDPERCENTUALDESCONTO NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (VALORDESCONTO NUMBER(10,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (PERCENTUALDESCONTO NUMBER(10,0))'; + exception when column_exists then null; +end; \ No newline at end of file From d80a69c314af79306caed42abd5986c99b709939 Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 31 Mar 2023 09:43:46 -0300 Subject: [PATCH 3/3] fixes bug #AL-2209 --- .../migration/V20230331_0808__AL-2209.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/db/postgresql/migration/V20230331_0808__AL-2209.sql diff --git a/src/db/postgresql/migration/V20230331_0808__AL-2209.sql b/src/db/postgresql/migration/V20230331_0808__AL-2209.sql new file mode 100644 index 000000000..5a858f796 --- /dev/null +++ b/src/db/postgresql/migration/V20230331_0808__AL-2209.sql @@ -0,0 +1,23 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (INDPERCENTUALDESCONTO NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (VALORDESCONTO NUMBER(10,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (PERCENTUALDESCONTO NUMBER(10,0))'; + exception when column_exists then null; +end; \ No newline at end of file