git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@66110 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2017-02-21 19:12:33 +00:00
parent e3055ea69a
commit ae3e7fb56c
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,8 @@
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,''HABILITAR REIMPRESSAO OCD'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.CANCELARBOLETOS.REIMPRESSAOCD'',1,SYSDATE,1)';
exception when dup_val_on_index then null;
end;

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'ALTER TABLE OCD ADD (CANT_REIMPRESION NUMBER(5) DEFAULT 1)';
exception when object_exists then null;
end;