From d1493b487bf06002a84c75728150791e62db6176 Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 14 Dec 2018 17:39:13 +0000 Subject: [PATCH] fixes bug#12905 dev:Valdevir qua:Valdir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@87953 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../postgresql/migration/V20181121_2253__mantis12491.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/db/postgresql/migration/V20181121_2253__mantis12491.sql diff --git a/src/db/postgresql/migration/V20181121_2253__mantis12491.sql b/src/db/postgresql/migration/V20181121_2253__mantis12491.sql new file mode 100644 index 000000000..5f41bd355 --- /dev/null +++ b/src/db/postgresql/migration/V20181121_2253__mantis12491.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,''VDA > VENDA EMBARCADA >> BAIXA GERA VENDA FISCAL'', ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUEMBARCADABAIXAGERAVENDAFISCAL'',1,SYSDATE,-1)'; + exception when dup_val_on_index then null; +end; \ No newline at end of file