From 7e5e8e89d0be363cc903d955480a1a7e1b945021 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Tue, 13 Jun 2023 10:00:30 -0300 Subject: [PATCH] =?UTF-8?q?bug#al-2761=20GLPI=2064102=20-=20{Projeto}=20-?= =?UTF-8?q?=20Espec=20Pricing=20Conex=C3=A3o=20-=20Aguia=20Branca=20dev:?= =?UTF-8?q?=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/db/migration/V20230605_1453__AL2761.sql | 12 ++++++++++++ .../postgresql/migration/V20230605_1453__AL2761.sql | 5 +++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20230605_1453__AL2761.sql create mode 100644 src/db/postgresql/migration/V20230605_1453__AL2761.sql diff --git a/pom.xml b/pom.xml index b52363cfb..ff27813b4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.4.0 + 1.4.1 diff --git a/src/db/migration/V20230605_1453__AL2761.sql b/src/db/migration/V20230605_1453__AL2761.sql new file mode 100644 index 000000000..8d19358e0 --- /dev/null +++ b/src/db/migration/V20230605_1453__AL2761.sql @@ -0,0 +1,12 @@ +declare + object_exists exception; + except_00957 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE PRICING_OCUPA_ANTECIPA MODIFY IMPORTE NUMBER(10,2)'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20230605_1453__AL2761.sql b/src/db/postgresql/migration/V20230605_1453__AL2761.sql new file mode 100644 index 000000000..6b6273dee --- /dev/null +++ b/src/db/postgresql/migration/V20230605_1453__AL2761.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE PRICING_OCUPA_ANTECIPA MODIFY IMPORTE NUMBER(10,2); +END +$$;