diff --git a/src/db/migration/V20190301_0950__mantis12718.sql b/src/db/migration/V20190301_0950__mantis12718.sql index 388270901..4702d8c33 100644 --- a/src/db/migration/V20190301_0950__mantis12718.sql +++ b/src/db/migration/V20190301_0950__mantis12718.sql @@ -1,8 +1,5 @@ -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; - +DO $$ +BEGIN + ALTER TABLE CAJA_DIVERSOS ADD AIDF_ID NUMBER(15,0); + EXCEPTION WHEN duplicate_column THEN NULL; +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190301_0950__mantis12718.sql b/src/db/postgresql/migration/V20190301_0950__mantis12718.sql deleted file mode 100644 index 4702d8c33..000000000 --- a/src/db/postgresql/migration/V20190301_0950__mantis12718.sql +++ /dev/null @@ -1,5 +0,0 @@ -DO $$ -BEGIN - ALTER TABLE CAJA_DIVERSOS ADD AIDF_ID NUMBER(15,0); - EXCEPTION WHEN duplicate_column THEN NULL; -$$; \ No newline at end of file