fixes bug#22719
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@109784 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b7142419f2
commit
d6fb5d7193
|
@ -2,6 +2,15 @@ declare
|
||||||
column_exists exception;
|
column_exists exception;
|
||||||
pragma exception_init (column_exists , -01430);
|
pragma exception_init (column_exists , -01430);
|
||||||
begin
|
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;
|
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;
|
||||||
|
/
|
||||||
|
|
Loading…
Reference in New Issue