diff --git a/src/db/migration/V20190312_2222__mantis13655.sql b/src/db/migration/V20190312_2222__mantis13655.sql new file mode 100644 index 000000000..5a10c8092 --- /dev/null +++ b/src/db/migration/V20190312_2222__mantis13655.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BPE ADD (DT_VENDA DATE)'; + exception when column_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +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 > RELATORIOS > BPe'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.RELATORIO.BPE'',1,sysdate,null)'; + exception when object_exists then null; +end; \ No newline at end of file