From f2c2247803aa613d2d073dd1ff07e1b48362322b Mon Sep 17 00:00:00 2001 From: wilian Date: Thu, 22 Nov 2018 16:48:27 +0000 Subject: [PATCH] bug#12773 bug#12785 dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@87275 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20181120_1758__mantis12773.sql | 7 +++++++ .../postgresql/migration/V20181120_1758__mantis12773.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20181120_1758__mantis12773.sql create mode 100644 src/db/postgresql/migration/V20181120_1758__mantis12773.sql diff --git a/src/db/migration/V20181120_1758__mantis12773.sql b/src/db/migration/V20181120_1758__mantis12773.sql new file mode 100644 index 000000000..60b2e3ef3 --- /dev/null +++ b/src/db/migration/V20181120_1758__mantis12773.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD (INDEMITEDABPEVDACALLCENTER NUMBER(1,0), INDOUTRASFPVDACALLCENTER NUMBER(1,0))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181120_1758__mantis12773.sql b/src/db/postgresql/migration/V20181120_1758__mantis12773.sql new file mode 100644 index 000000000..01d3c52a3 --- /dev/null +++ b/src/db/postgresql/migration/V20181120_1758__mantis12773.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA ADD (INDEMITEDABPEVDACALLCENTER NUMBER(1,0), INDOUTRASFPVDACALLCENTER NUMBER(1,0)); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file