From 37e3755eb6562f6e620a2442c924d274acb605bf Mon Sep 17 00:00:00 2001 From: walace Date: Fri, 1 Mar 2019 13:24:21 +0000 Subject: [PATCH] fixes bug#13012 qua:bruno dev:julio git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@90440 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190301_0950__mantis12718.sql | 13 +++++-------- .../migration/V20190301_0950__mantis12718.sql | 5 ----- 2 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 src/db/postgresql/migration/V20190301_0950__mantis12718.sql 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