From 02e80a6e477908dc0e07778ddf6e772236e76a8d Mon Sep 17 00:00:00 2001 From: fabio Date: Mon, 28 Sep 2020 13:26:13 +0000 Subject: [PATCH] fixes bug#20116 dev: Thiago Veloso qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@103552 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200922_1226__mantis20116.sql | 7 +++++++ .../postgresql/migration/V20200922_1226__mantis20116.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20200922_1226__mantis20116.sql create mode 100644 src/db/postgresql/migration/V20200922_1226__mantis20116.sql diff --git a/src/db/migration/V20200922_1226__mantis20116.sql b/src/db/migration/V20200922_1226__mantis20116.sql new file mode 100644 index 000000000..8f5da8b3d --- /dev/null +++ b/src/db/migration/V20200922_1226__mantis20116.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD INDTRANSFERENCIAREATIVACAO NUMBER(1,0)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200922_1226__mantis20116.sql b/src/db/postgresql/migration/V20200922_1226__mantis20116.sql new file mode 100644 index 000000000..8f5da8b3d --- /dev/null +++ b/src/db/postgresql/migration/V20200922_1226__mantis20116.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD INDTRANSFERENCIAREATIVACAO NUMBER(1,0)'; + exception when column_exists then null; +end; \ No newline at end of file