ajustes nos sql's na execução em uma base zerada

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@79550 d1611594-4594-4d17-8e1d-87c2c4800839
master
gleimar 2018-03-06 13:04:20 +00:00
parent 7e24230a3e
commit 0414422ad8
2 changed files with 4 additions and 2 deletions

View File

@ -7,6 +7,7 @@ begin
START WITH 1 CACHE 20 NOORDER NOCYCLE'; START WITH 1 CACHE 20 NOORDER NOCYCLE';
exception when object_exists then null; exception when object_exists then null;
end; end;
/
declare declare
object_exists exception; object_exists exception;
pragma exception_init (object_exists , -00955); pragma exception_init (object_exists , -00955);
@ -15,3 +16,4 @@ begin
ADD (TIPOMOTIVOCANCEL VARCHAR2(20))'; ADD (TIPOMOTIVOCANCEL VARCHAR2(20))';
exception when object_exists then null; exception when object_exists then null;
end; end;
/

View File

@ -1,8 +1,8 @@
declare declare
column_exists exception; column_exists exception;
pragma exception_init (column_exists , -01430);
begin begin
execute immediate 'ALTER TABLE MONITORAMENTO_CRZ MODIFY (EMPRESA_ID NULL)'; execute immediate 'ALTER TABLE MONITORAMENTO_CRZ MODIFY (EMPRESA_ID NULL)';
exception when column_exists then null; exception when others then null;
end; end;