From 1f8b3c91fd6efe8a39c3db27077f37cab06ec44d Mon Sep 17 00:00:00 2001 From: valdevir Date: Wed, 3 Feb 2021 17:26:31 +0000 Subject: [PATCH] fixes bug#21465 qua: dev:Valdir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@105276 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20210202_1120__mantis21465.sql | 6 ++++++ .../postgresql/migration/V20210203_0917__mantis21465.sql | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20210202_1120__mantis21465.sql create mode 100644 src/db/postgresql/migration/V20210203_0917__mantis21465.sql diff --git a/src/db/migration/V20210202_1120__mantis21465.sql b/src/db/migration/V20210202_1120__mantis21465.sql new file mode 100644 index 000000000..3c4ffbecf --- /dev/null +++ b/src/db/migration/V20210202_1120__mantis21465.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 > PASAJERO FRECUENTE > IMPORTAR CLIENTES SRVP'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.PASAJEROFRECUENTE.MENU.IMPORTARCLIENTESSRVP'',1,SYSDATE,-1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210203_0917__mantis21465.sql b/src/db/postgresql/migration/V20210203_0917__mantis21465.sql new file mode 100644 index 000000000..5ee2cbe33 --- /dev/null +++ b/src/db/postgresql/migration/V20210203_0917__mantis21465.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (FUNCION_SISTEMA_SEQ.NEXTVAL,1,'ADM > PASAJERO FRECUENTE > IMPORTAR CLIENTES SRVP', 'COM.RJCONSULTORES.ADMINISTRACION.GUI.PASAJEROFRECUENTE.MENU.IMPORTARCLIENTESSRVP',1,SYSDATE,-1); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;