From 78a32ee5f3d366580001b59d282d9212d2001212 Mon Sep 17 00:00:00 2001 From: valdir Date: Thu, 19 Mar 2020 20:36:09 +0000 Subject: [PATCH] 0018200: Espec Melhorias no cadastro de Clientes bug#18200 dev:thiago qua:debora git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@100838 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20201903_1517__mantis18200.sql | 6 ++++++ .../postgresql/migration/V20201903_1517__mantis18200.sql | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 src/db/migration/V20201903_1517__mantis18200.sql create mode 100644 src/db/postgresql/migration/V20201903_1517__mantis18200.sql diff --git a/src/db/migration/V20201903_1517__mantis18200.sql b/src/db/migration/V20201903_1517__mantis18200.sql new file mode 100644 index 000000000..0a2323b85 --- /dev/null +++ b/src/db/migration/V20201903_1517__mantis18200.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 > CATALOGO > PAIS'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.PAIS'',1,SYSDATE,-1)'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20201903_1517__mantis18200.sql b/src/db/postgresql/migration/V20201903_1517__mantis18200.sql new file mode 100644 index 000000000..7c818e979 --- /dev/null +++ b/src/db/postgresql/migration/V20201903_1517__mantis18200.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + ALTER TABLE PUNTO_VENTA ALTER COLUMN MOTIVONAOINTEGRADOAG TYPE VARCHAR(1000);insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (FUNCION_SISTEMA_SEQ.NEXTVAL,1,'ADM > CATALOGO > PAIS', 'COM.RJCONSULTORES.ADMINISTRACION.GUI.CATALOGO.MENU.PAIS',1,SYSDATE,-1); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;