diff --git a/src/db/migration/V2019107_2125__mantis15545.sql b/src/db/migration/V2019107_2125__mantis15545.sql new file mode 100644 index 000000000..cc44226d0 --- /dev/null +++ b/src/db/migration/V2019107_2125__mantis15545.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD (INDCUOTANUNCALIBERAR NUMBER(1,0))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V2019107_2125__mantis15545.sql b/src/db/postgresql/migration/V2019107_2125__mantis15545.sql new file mode 100644 index 000000000..45c894d63 --- /dev/null +++ b/src/db/postgresql/migration/V2019107_2125__mantis15545.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO ADD (INDCUOTANUNCALIBERAR NUMBER(1,0)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file