From 698b3622ad7b6ff023c7ff13eadff1e46cace618 Mon Sep 17 00:00:00 2001 From: frederico Date: Mon, 17 Feb 2020 20:40:09 +0000 Subject: [PATCH] bug#18290 qua:Junia dev:Thiago git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@100249 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20200211_1103__mantis18290.sql | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/db/migration/V20200211_1103__mantis18290.sql diff --git a/src/db/migration/V20200211_1103__mantis18290.sql b/src/db/migration/V20200211_1103__mantis18290.sql new file mode 100644 index 000000000..72de78acc --- /dev/null +++ b/src/db/migration/V20200211_1103__mantis18290.sql @@ -0,0 +1,33 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDIMPRIMEVOUCHERPERSONALIZADO NUMBER(1,0)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; + +/ + +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'ALTER TABLE EMPRESA ADD CAMPO_CUSTOM_VOUCHER CLOB'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end;