fixes bug#22719

qua:
dev:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@109784 d1611594-4594-4d17-8e1d-87c2c4800839
master
aristides 2021-11-29 18:04:40 +00:00
parent b7142419f2
commit d6fb5d7193
1 changed files with 11 additions and 2 deletions

View File

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