From e055e7b6a3c0bbbb90f72e289aeca75caeda7717 Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 4 Sep 2020 17:38:45 +0000 Subject: [PATCH] fixes bug#20145 qua: dev:Valdir Criar tela painel venda embarcada e alterar menu venda embarcada. git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@103186 d1611594-4594-4d17-8e1d-87c2c4800839 --- .settings/org.eclipse.jdt.core.prefs | 3 +++ .../migration/V20200902_0845__mantis20145.sql | 18 ++++++++++++++++++ .../migration/V20200903_1342__mantis20145.sql | 7 +++++++ .../migration/V20200903_1745__mantis20145.sql | 18 ++++++++++++++++++ .../migration/V20200902_0845__mantis20145.sql | 8 ++++++++ .../migration/V20200903_1342__mantis20145.sql | 8 ++++++++ .../migration/V20200903_1745__mantis20145.sql | 8 ++++++++ 7 files changed, 70 insertions(+) create mode 100644 src/db/migration/V20200902_0845__mantis20145.sql create mode 100644 src/db/migration/V20200903_1342__mantis20145.sql create mode 100644 src/db/migration/V20200903_1745__mantis20145.sql create mode 100644 src/db/postgresql/migration/V20200902_0845__mantis20145.sql create mode 100644 src/db/postgresql/migration/V20200903_1342__mantis20145.sql create mode 100644 src/db/postgresql/migration/V20200903_1745__mantis20145.sql diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 6428c6805..837d37bb5 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -7,6 +7,9 @@ org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled org.eclipse.jdt.core.compiler.problem.enumIdentifier=error org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore +org.eclipse.jdt.core.compiler.release=disabled org.eclipse.jdt.core.compiler.source=1.6 diff --git a/src/db/migration/V20200902_0845__mantis20145.sql b/src/db/migration/V20200902_0845__mantis20145.sql new file mode 100644 index 000000000..d9145dd1c --- /dev/null +++ b/src/db/migration/V20200902_0845__mantis20145.sql @@ -0,0 +1,18 @@ +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 > SEGURANCA >> PAINEL VENDA EMBARCADA EDITAR'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.PAINELVENDAEMBARCADA.EDITAR'', 1, SYSDATE, 1)'; + + exception + when dup_val_on_index then null; + when except_02291 then null; +end; + diff --git a/src/db/migration/V20200903_1342__mantis20145.sql b/src/db/migration/V20200903_1342__mantis20145.sql new file mode 100644 index 000000000..bfbf65f14 --- /dev/null +++ b/src/db/migration/V20200903_1342__mantis20145.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID) values (CONSTANTE_SEQ.NEXTVAL,''URL_PAINEL_EMBARCADA'',''URL PAINEL EMBARCADA'',''1'',''2'',''1'',''1'',sysdate,''1'')'; + exception when dup_val_on_index then null; +end; diff --git a/src/db/migration/V20200903_1745__mantis20145.sql b/src/db/migration/V20200903_1745__mantis20145.sql new file mode 100644 index 000000000..b7f7bad32 --- /dev/null +++ b/src/db/migration/V20200903_1745__mantis20145.sql @@ -0,0 +1,18 @@ +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 > SEGURANCA >> PAINEL VENDA EMBARCADA'', + ''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.PAINELVENDAEMBARCADA'', 1, SYSDATE, 1)'; + + exception + when dup_val_on_index then null; + when except_02291 then null; +end; + diff --git a/src/db/postgresql/migration/V20200902_0845__mantis20145.sql b/src/db/postgresql/migration/V20200902_0845__mantis20145.sql new file mode 100644 index 000000000..f6eaf1784 --- /dev/null +++ b/src/db/postgresql/migration/V20200902_0845__mantis20145.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 > PAINEL VENDA EMBARCADA','COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.PAINELVENDAEMBARCADA',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$; diff --git a/src/db/postgresql/migration/V20200903_1342__mantis20145.sql b/src/db/postgresql/migration/V20200903_1342__mantis20145.sql new file mode 100644 index 000000000..569f1375c --- /dev/null +++ b/src/db/postgresql/migration/V20200903_1342__mantis20145.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + INSERT INTO CONSTANTE (CONSTANTE_ID, NOMBCONSTANTE, DESCCONSTANTE, VALORCONSTANTE, INDTIPOCONSTANTE, INDMANTENIMIENTOUSUARIO, ACTIVO, FECMODIF, USUARIO_ID) VALUES (nextval('CONSTANTE_SEQ'), 'URL_PAINEL_EMBARCADA', 'URL PAINEL EMBARCADA', 'FALSE', '', '1', '1', now(), '1'); + EXCEPTION + WHEN OTHERS THEN NULL; + WHEN unique_violation THEN NULL; +END +$$; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200903_1745__mantis20145.sql b/src/db/postgresql/migration/V20200903_1745__mantis20145.sql new file mode 100644 index 000000000..417907067 --- /dev/null +++ b/src/db/postgresql/migration/V20200903_1745__mantis20145.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 > PAINEL VENDA EMBARCADA EDITAR','COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.PAINELVENDAEMBARCADA.EDITAR',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;