diff --git a/src/db/migration/V20190227_2030__mantis13611.sql b/src/db/migration/V20190227_2030__mantis13611.sql new file mode 100644 index 000000000..4201ab051 --- /dev/null +++ b/src/db/migration/V20190227_2030__mantis13611.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE INDEX IDX_CHAVE ON CUSTOM (CHAVE)'; + 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 > SEGURANCA > CUSTOMIZACAO SISTEMA'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.CUSTOM'',1,sysdate,null)'; + exception when object_exists then null; +end; \ No newline at end of file