From d6fb5d71934cd24f4fbff222412f76a8d7be06d5 Mon Sep 17 00:00:00 2001 From: aristides Date: Mon, 29 Nov 2021 18:04:40 +0000 Subject: [PATCH] fixes bug#22719 qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@109784 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20211122_1622__mantis22719.sql | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/db/migration/V20211122_1622__mantis22719.sql b/src/db/migration/V20211122_1622__mantis22719.sql index ad8cc1f61..a929db108 100644 --- a/src/db/migration/V20211122_1622__mantis22719.sql +++ b/src/db/migration/V20211122_1622__mantis22719.sql @@ -2,6 +2,15 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE INSCRICAO_ESTADUAL ADD NUMINSCRICAOMUNICIPAL VARCHAR(15) DEFAULT ''ISENTO'' NOT NULL' ; + execute immediate 'ALTER TABLE INSCRICAO_ESTADUAL ADD NUMINSCRICAOMUNICIPAL VARCHAR(15)' ; exception when column_exists then null; -end; \ No newline at end of file +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'update INSCRICAO_ESTADUAL set NUMINSCRICAOMUNICIPAL=''ISENTO'''; + exception when object_exists then null; +end; +/