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