bug#11495

qua:wallysson
dev:thiago

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@83368 d1611594-4594-4d17-8e1d-87c2c4800839
master
frederico 2018-07-13 18:22:49 +00:00
parent b50df1fda8
commit d747332551
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
declare
begin
execute immediate 'INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID)
values (FUNCION_SISTEMA_SEQ.NEXTVAL,''1'',''ADM > RELATORIOS >> CADASTRO CLIENTES'',
''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.CADASTROCLIENTES'',
''1'',to_date(''10/07/18'',''DD/MM/RR''),''1'')';
exception when others then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE CLIENTE ADD (FECCADASTRO DATE, EMPRESA_ID NUMBER (7,0), PUNTOVENTA_ID NUMBER (7,0))';
exception when column_exists then null;
end;
/
declare
begin
execute immediate 'ALTER TABLE CLIENTE
ADD CONSTRAINT CLIENTE_EMPRESA
FOREIGN KEY (EMPRESA_ID)
REFERENCES EMPRESA (EMPRESA_ID)';
exception when others then null;
end;