From 0a408dea78e91e2dbd6850ca95e71aaddfc40f1c Mon Sep 17 00:00:00 2001 From: wilian Date: Tue, 9 Apr 2019 17:52:46 +0000 Subject: [PATCH] bug#14038 dev:wilian qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@91729 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190409_1107__mantis14038.sql | 7 +++++++ .../postgresql/migration/V20190409_1107__mantis14038.sql | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/db/migration/V20190409_1107__mantis14038.sql create mode 100644 src/db/postgresql/migration/V20190409_1107__mantis14038.sql diff --git a/src/db/migration/V20190409_1107__mantis14038.sql b/src/db/migration/V20190409_1107__mantis14038.sql new file mode 100644 index 000000000..a77e72ca4 --- /dev/null +++ b/src/db/migration/V20190409_1107__mantis14038.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,''VDA > CHECKIN > CHECKIN AUTOMATICO > LIBERAR ASSENTO > CONFIRMAR EMBARQUE'',''COM.RJCONSULTORES.VENTABOLETOS.WEB.UTILERIAS.MENU.ITEM.VENTA.HABILITARCONFEMBARQUECHECKINAUTOMATICO'',1,sysdate,1)'; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190409_1107__mantis14038.sql b/src/db/postgresql/migration/V20190409_1107__mantis14038.sql new file mode 100644 index 000000000..1c038f503 --- /dev/null +++ b/src/db/postgresql/migration/V20190409_1107__mantis14038.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'),2,'VDA > CHECKIN > CHECKIN AUTOMATICO > LIBERAR ASSENTO > CONFIRMAR EMBARQUE','COM.RJCONSULTORES.VENTABOLETOS.WEB.UTILERIAS.MENU.ITEM.VENTA.HABILITARCONFEMBARQUECHECKINAUTOMATICO',1,now(),1); + + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;