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 +$$;