From 3dbfd4314ec0b2f65d03fe6da3d172935cb4ed15 Mon Sep 17 00:00:00 2001 From: walace Date: Thu, 13 May 2021 23:15:16 +0000 Subject: [PATCH] fixes bug#22050 qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@106702 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210513_1120__mantis22050.sql | 15 +++++++++++++++ .../migration/V20210513_1920__mantis22050.sql | 9 +++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/db/migration/V20210513_1120__mantis22050.sql create mode 100644 src/db/postgresql/migration/V20210513_1920__mantis22050.sql diff --git a/src/db/migration/V20210513_1120__mantis22050.sql b/src/db/migration/V20210513_1120__mantis22050.sql new file mode 100644 index 000000000..4598ee39e --- /dev/null +++ b/src/db/migration/V20210513_1120__mantis22050.sql @@ -0,0 +1,15 @@ +declare + dup_val_on_index exception; + except_02291 exception; + + pragma exception_init (dup_val_on_index , -00001); + pragma exception_init (except_02291 , -02291); +begin + execute immediate 'INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID, SISTEMA_ID, NOMBFUNCION, DESCRUTA, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (FUNCION_SISTEMA_SEQ.nextval, 1, ''ADM >> RELATORIOS >> RELATORIO VENDAS CONEXAO POR LINHA'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASCONEXAORUTA'', 1, + SYSDATE, -1)'; + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210513_1920__mantis22050.sql b/src/db/postgresql/migration/V20210513_1920__mantis22050.sql new file mode 100644 index 000000000..d54f0cfac --- /dev/null +++ b/src/db/postgresql/migration/V20210513_1920__mantis22050.sql @@ -0,0 +1,9 @@ +DO $$ +BEGIN + INSERT INTO FUNCION_SISTEMA (FUNCIONSISTEMA_ID, SISTEMA_ID, NOMBFUNCION, DESCRUTA, ACTIVO, FECMODIF, USUARIO_ID) + VALUES (FUNCION_SISTEMA_SEQ.nextval, 1, ''ADM >> RELATORIOS >> RELATORIO VENDAS CONEXAO POR LINHA'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASCONEXAORUTA'', 1, + SYSDATE, -1); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;