From d6723627225b8b3ab322929b2adf8f5b3cdd621c Mon Sep 17 00:00:00 2001 From: fabio Date: Sat, 8 Aug 2020 04:32:09 +0000 Subject: [PATCH] bug#19698 dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@102851 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20200722_1553__mantis19698.sql | 17 +++++++++++++++++ .../migration/V20200722_1553__mantis19698.sql | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/db/migration/V20200722_1553__mantis19698.sql create mode 100644 src/db/postgresql/migration/V20200722_1553__mantis19698.sql diff --git a/src/db/migration/V20200722_1553__mantis19698.sql b/src/db/migration/V20200722_1553__mantis19698.sql new file mode 100644 index 000000000..335de7769 --- /dev/null +++ b/src/db/migration/V20200722_1553__mantis19698.sql @@ -0,0 +1,17 @@ +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, 2, ''VDA > RECEITA/DESPESA > RECARGA CELULAR'', + ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENURECARGACELULAR'', 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/V20200722_1553__mantis19698.sql b/src/db/postgresql/migration/V20200722_1553__mantis19698.sql new file mode 100644 index 000000000..335de7769 --- /dev/null +++ b/src/db/postgresql/migration/V20200722_1553__mantis19698.sql @@ -0,0 +1,17 @@ +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, 2, ''VDA > RECEITA/DESPESA > RECARGA CELULAR'', + ''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENURECARGACELULAR'', 1, SYSDATE, 1)'; + + exception + when dup_val_on_index then null; + when except_02291 then null; +end; \ No newline at end of file