From 494adc34ab05b3fb1463d7fedb4c4cff2f9fe716 Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 20 Dec 2019 17:23:25 +0000 Subject: [PATCH] bug#17120 dev:fred qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@99440 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20191219_1559__mantis17120.sql | 6 ++++++ .../postgresql/migration/V20191219_1559__mantis17120.sql | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20191219_1559__mantis17120.sql create mode 100644 src/db/postgresql/migration/V20191219_1559__mantis17120.sql diff --git a/src/db/migration/V20191219_1559__mantis17120.sql b/src/db/migration/V20191219_1559__mantis17120.sql new file mode 100644 index 000000000..a95d9f4db --- /dev/null +++ b/src/db/migration/V20191219_1559__mantis17120.sql @@ -0,0 +1,6 @@ +declare +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,''VDA > VENDA > CANCELAMENTO BP-e MIGRACAO'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUCANCELAMENTOBPEMIGRACAO'',1,sysdate,1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191219_1559__mantis17120.sql b/src/db/postgresql/migration/V20191219_1559__mantis17120.sql new file mode 100644 index 000000000..b9331c1b3 --- /dev/null +++ b/src/db/postgresql/migration/V20191219_1559__mantis17120.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (nextval('funcion_sistema_seq'),2,'VDA > VENDA > CANCELAMENTO BP-e MIGRACAO','COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUCANCELAMENTOBPEMIGRACAO',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;