diff --git a/src/db/migration/V20190301_0950__mantis12718.sql b/src/db/migration/V20190301_0950__mantis12718.sql new file mode 100644 index 000000000..388270901 --- /dev/null +++ b/src/db/migration/V20190301_0950__mantis12718.sql @@ -0,0 +1,8 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD AIDF_ID NUMBER(15,0)'; + exception when object_exists then null; +end; + diff --git a/src/db/postgresql/migration/V20190301_0950__mantis12718.sql b/src/db/postgresql/migration/V20190301_0950__mantis12718.sql new file mode 100644 index 000000000..4702d8c33 --- /dev/null +++ b/src/db/postgresql/migration/V20190301_0950__mantis12718.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE CAJA_DIVERSOS ADD AIDF_ID NUMBER(15,0); + EXCEPTION WHEN duplicate_column THEN NULL; +$$; \ No newline at end of file