From 333fecb425d7e1551c7a00848b11aa68c547bd2f Mon Sep 17 00:00:00 2001 From: "aristides@rjconsultores.com.br" Date: Tue, 16 May 2023 14:41:58 -0300 Subject: [PATCH] fixes bug#AL_2302 --- pom.xml | 2 +- src/db/migration/V20230515_1015__AL2302.sql | 7 +++++++ src/db/postgresql/migration/V20230515_1015__AL2302.sql | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20230515_1015__AL2302.sql create mode 100644 src/db/postgresql/migration/V20230515_1015__AL2302.sql diff --git a/pom.xml b/pom.xml index 64e2e5151..3442921c3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.3.3 + 1.3.4 diff --git a/src/db/migration/V20230515_1015__AL2302.sql b/src/db/migration/V20230515_1015__AL2302.sql new file mode 100644 index 000000000..88624c6d1 --- /dev/null +++ b/src/db/migration/V20230515_1015__AL2302.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLASE_SERVICIO ADD (PORCPRICINGSEMELHANTE NUMBER(7,2))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20230515_1015__AL2302.sql b/src/db/postgresql/migration/V20230515_1015__AL2302.sql new file mode 100644 index 000000000..0b2413274 --- /dev/null +++ b/src/db/postgresql/migration/V20230515_1015__AL2302.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLASE_SERVICIO ADD (PORCPRICINGSEMELHANTE NUMBER(5,2))'; + exception when column_exists then null; +end; \ No newline at end of file