diff --git a/src/db/migration/V20171208_1701__mantis9775.sql b/src/db/migration/V20171208_1701__mantis9775.sql index 2025b11c8..64d2ee059 100644 --- a/src/db/migration/V20171208_1701__mantis9775.sql +++ b/src/db/migration/V20171208_1701__mantis9775.sql @@ -1,7 +1,7 @@ declare object_exists exception; - pragma exception_init (object_exists , -00955); + pragma exception_init (object_exists , -01430); begin - execute immediate 'ALTER TABLE EMPRESA ADD ( INDIMPRIMECUPEMBVENDAMANUAL NUMBER(1, 0) DEFAULT 0 NOT NULL )'; + execute immediate 'ALTER TABLE EMPRESA ADD ( INDIMPRIMECUPEMBVENDAMANUAL NUMBER(1, 0) DEFAULT 0 )'; exception when object_exists then null; end; \ No newline at end of file diff --git a/src/db/migration/V20180111_1058__mantis10346.sql b/src/db/migration/V20180111_1058__mantis10346.sql new file mode 100644 index 000000000..26a8a45f3 --- /dev/null +++ b/src/db/migration/V20180111_1058__mantis10346.sql @@ -0,0 +1,9 @@ + +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,''ADM > RELATORIO >> GRATUIDADE ANTT'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOGRATUIDADEANTT'',1,sysdate,1)'; + exception when dup_val_on_index then null; +end;