From 06ec7116444f41fa69f9f434be2b2946290d9c38 Mon Sep 17 00:00:00 2001 From: wilian Date: Wed, 11 Dec 2019 14:43:07 +0000 Subject: [PATCH] fixes bug#17529 dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@99318 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20191211_1057__mantis17529.sql | 6 ++++++ .../postgresql/migration/V20191211_1057__mantis17529.sql | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20191211_1057__mantis17529.sql create mode 100644 src/db/postgresql/migration/V20191211_1057__mantis17529.sql diff --git a/src/db/migration/V20191211_1057__mantis17529.sql b/src/db/migration/V20191211_1057__mantis17529.sql new file mode 100644 index 000000000..8fd952690 --- /dev/null +++ b/src/db/migration/V20191211_1057__mantis17529.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,1,''ADM > SEGURANCA > REENVIO BP-e'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.REENVIO_BPE'',1,SYSDATE,-1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20191211_1057__mantis17529.sql b/src/db/postgresql/migration/V20191211_1057__mantis17529.sql new file mode 100644 index 000000000..5f6e6eab2 --- /dev/null +++ b/src/db/postgresql/migration/V20191211_1057__mantis17529.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'),1,'ADM > SEGURANCA > REENVIO BP-e','COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.REENVIO_BPE',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;