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 +$$;