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; +/