diff --git a/src/db/migration/V20170106_1026__mantis8367.sql b/src/db/migration/V20170106_1026__mantis8367.sql new file mode 100644 index 000000000..ea0242ad8 --- /dev/null +++ b/src/db/migration/V20170106_1026__mantis8367.sql @@ -0,0 +1,8 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) + values (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''HABILITAR REIMPRESSAO OCD'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.CANCELARBOLETOS.REIMPRESSAOCD'',1,SYSDATE,1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170117_1419__mantis8367.sql b/src/db/migration/V20170117_1419__mantis8367.sql new file mode 100644 index 000000000..a9123fa0b --- /dev/null +++ b/src/db/migration/V20170117_1419__mantis8367.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE OCD ADD (CANT_REIMPRESION NUMBER(5) DEFAULT 1)'; + exception when object_exists then null; +end; \ No newline at end of file