AdmMono/src/db/migration/V20170926_2100__mantis9100.sql

23 lines
902 B
MySQL

declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FECHAMENTO_PARAMGERAL ADD (COUNT_REMESSA NUMBER(15), COD_EMP_BANCO NUMBER(20))';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE FECHAMENTO_BOLETO ADD (REMESSA_ID NUMBER(20))';
exception when column_exists then null;
end;
/
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 >> RELATORIO DE ARQUIVO REMESSA CNAB'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOREMESSACNAB'', 1 , sysdate, 1 )';
exception when others then null;
end;
/