git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@78143 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2018-01-18 18:28:22 +00:00
parent d8df7e2d61
commit 20e9000359
2 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
declare declare
object_exists exception; object_exists exception;
pragma exception_init (object_exists , -00955); pragma exception_init (object_exists , -01430);
begin begin
execute immediate 'ALTER TABLE EMPRESA ADD ( INDIMPRIMECUPEMBVENDAMANUAL NUMBER(1, 0) DEFAULT 0 NOT NULL )'; execute immediate 'ALTER TABLE EMPRESA ADD ( INDIMPRIMECUPEMBVENDAMANUAL NUMBER(1, 0) DEFAULT 0 )';
exception when object_exists then null; exception when object_exists then null;
end; end;

View File

@ -0,0 +1,9 @@
declare
dup_val_on_index exception;
pragma exception_init (dup_val_on_index , -00001);
begin
execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
values (FUNCION_SISTEMA_seq.nextval,1,''ADM > RELATORIO >> GRATUIDADE ANTT'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOGRATUIDADEANTT'',1,sysdate,1)';
exception when dup_val_on_index then null;
end;