git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@73138 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2017-08-26 14:50:21 +00:00
parent 167a50cf33
commit bc7782231d
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,8 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE BOLETO ADD (CLIENTECOMPRADOR_ID NUMBER(7) )';
exception when object_exists then null;
end;

View File

@ -0,0 +1,8 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE CAJA ADD (CLIENTECOMPRADOR_ID NUMBER(7))';
exception when object_exists then null;
end;

View File

@ -0,0 +1,11 @@
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'',''VDA > GRC >> CLIENTE COMPRADOR'',''VDA.GRC.CLIENTECOMPRADOR'',''1'',sysdate,''1'')';
exception when dup_val_on_index then null;
end;