From 3d998a63ffc7a2ca7c6498a8d8be275910547187 Mon Sep 17 00:00:00 2001 From: Julio Heredia Date: Mon, 8 May 2023 19:23:03 -0300 Subject: [PATCH] fixes bug#AL-2209 dev: Lucas qua: --- pom.xml | 2 +- src/db/migration/V20230508_1133__AL-2209.sql | 37 ++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20230508_1133__AL-2209.sql diff --git a/pom.xml b/pom.xml index 6573d06ae..76012891f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.3.0 + 1.3.1 diff --git a/src/db/migration/V20230508_1133__AL-2209.sql b/src/db/migration/V20230508_1133__AL-2209.sql new file mode 100644 index 000000000..0c8c1eded --- /dev/null +++ b/src/db/migration/V20230508_1133__AL-2209.sql @@ -0,0 +1,37 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + except_01440 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); + pragma exception_init (except_01442 , -01440); +begin + execute immediate 'ALTER TABLE FORMA_PAGO MODIFY (PERCENTUALDESCONTO NUMBER(10,2))'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; + when except_01440 then null; +end; +/ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + except_01440 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); + pragma exception_init (except_01442 , -01440); +begin + execute immediate 'ALTER TABLE FORMA_PAGO MODIFY (VALORDESCONTO NUMBER(10,2))'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; + when except_01440 then null; +end; \ No newline at end of file