diff --git a/src/db/migration/V20180713_1015__mantis11495.sql b/src/db/migration/V20180713_1015__mantis11495.sql new file mode 100644 index 000000000..1ff2b9fea --- /dev/null +++ b/src/db/migration/V20180713_1015__mantis11495.sql @@ -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; \ No newline at end of file