diff --git a/pom.xml b/pom.xml index b6754e79d..beb512e4f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.19.0 + 1.19.1 diff --git a/src/db/migration/V20231110_1023__AL3351.sql b/src/db/migration/V20231110_1023__AL3351.sql deleted file mode 100644 index fae1eca9c..000000000 --- a/src/db/migration/V20231110_1023__AL3351.sql +++ /dev/null @@ -1,7 +0,0 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01430); -begin - execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0)' ; - exception when column_exists then null; -end; diff --git a/src/db/migration/V20231114_1025__AL3524.sql b/src/db/migration/V20231114_1025__AL3524.sql new file mode 100644 index 000000000..6eee03438 --- /dev/null +++ b/src/db/migration/V20231114_1025__AL3524.sql @@ -0,0 +1,19 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ; + exception when column_exists then null; +end; +/ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA RENAME COLUMN INDTAXACONVENIENCIAORGAOCONCEDENTE TO INDTAXACONVORGAOCONCEDENTE'; + 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/V20231119_1030__AL-3351.sql b/src/db/postgresql/migration/V20231119_1030__AL-3351.sql deleted file mode 100644 index ef29cd51a..000000000 --- a/src/db/postgresql/migration/V20231119_1030__AL-3351.sql +++ /dev/null @@ -1,5 +0,0 @@ -DO $$ -BEGIN - ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0); -END -$$; \ No newline at end of file