From 4f6c36cda292b8ea20c95cb3d2906d515d4137bd Mon Sep 17 00:00:00 2001 From: aristides Date: Mon, 7 Feb 2022 14:48:57 +0000 Subject: [PATCH] fixes bug#23939 qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@110765 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20220204_1758__mantis23939.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/db/migration/V20220204_1758__mantis23939.sql diff --git a/src/db/migration/V20220204_1758__mantis23939.sql b/src/db/migration/V20220204_1758__mantis23939.sql new file mode 100644 index 000000000..a3df1b059 --- /dev/null +++ b/src/db/migration/V20220204_1758__mantis23939.sql @@ -0,0 +1,17 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'alter table ocd_param add(INDOCDFORMAPAGAMENTO NUMBER(1,0))'; + exception when column_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'UPDATE ocd_param SET INDOCDFORMAPAGAMENTO=0'; + exception when object_exists then null; +end; +/