diff --git a/src/db/migration/V20210115_1629__mantis21437.sql b/src/db/migration/V20210115_1629__mantis21437.sql new file mode 100644 index 000000000..4c15fdfdd --- /dev/null +++ b/src/db/migration/V20210115_1629__mantis21437.sql @@ -0,0 +1,11 @@ +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 PRICINGOCUPAANTECIPA_ID NUMBER(15)'; + 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/V20210115_1629__mantis21437.sql b/src/db/postgresql/migration/V20210115_1629__mantis21437.sql new file mode 100644 index 000000000..c36ea8bcc --- /dev/null +++ b/src/db/postgresql/migration/V20210115_1629__mantis21437.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE PRICING_OCUPA_ANTECIPA MODIFY PRICINGOCUPAANTECIPA_ID NUMBER(15); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file