diff --git a/src/db/migration/V20190321_1710__mantis13746.sql b/src/db/migration/V20190321_1710__mantis13746.sql index c7c889e82..95cda2625 100644 --- a/src/db/migration/V20190321_1710__mantis13746.sql +++ b/src/db/migration/V20190321_1710__mantis13746.sql @@ -4,4 +4,5 @@ declare begin execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values (funcion_sistema_seq.nextval,2,''ADM > SEGURANCA > DISPOSITIVO VENDA EMBARCADA'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.DISPOSITIVOVENDAEMBARCADA'',1,sysdate,1)'; + exception when dup_val_on_index then null; end; \ No newline at end of file diff --git a/src/db/migration/V20190329_1700__mantis13748.sql b/src/db/migration/V20190329_1700__mantis13748.sql new file mode 100644 index 000000000..9523c50fb --- /dev/null +++ b/src/db/migration/V20190329_1700__mantis13748.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,2,''ADM > SEGURANCA > AUTORIZACAO DE USO DE SERIE POR DISPOSITIVO'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.AUTORIZACAOUSOSERIEEMBARCADA'',1,sysdate,1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file