From 323d9e60680c69641ab1bb40a4f9d95812c72542 Mon Sep 17 00:00:00 2001 From: Albert Bofill Date: Mon, 2 Sep 2024 18:01:51 +0200 Subject: [PATCH] enhancement: delete duplicated view (v_ui_doc is newer) --- updates/36/36012/utils/ddlview.sql | 3 +++ updates/36/36012/utils/dml.sql | 2 ++ 2 files changed, 5 insertions(+) diff --git a/updates/36/36012/utils/ddlview.sql b/updates/36/36012/utils/ddlview.sql index 63c852e141..6b0d45e6bc 100644 --- a/updates/36/36012/utils/ddlview.sql +++ b/updates/36/36012/utils/ddlview.sql @@ -7,6 +7,9 @@ This version of Giswater is provided by Giswater Association SET search_path = SCHEMA_NAME, public, pg_catalog; +--deprecated +DROP VIEW if EXISTS v_ui_document; + DROP VIEW if EXISTS v_ui_doc; CREATE OR REPLACE VIEW v_ui_doc AS SELECT doc.id, diff --git a/updates/36/36012/utils/dml.sql b/updates/36/36012/utils/dml.sql index 82538aed04..53be1eb6b7 100644 --- a/updates/36/36012/utils/dml.sql +++ b/updates/36/36012/utils/dml.sql @@ -404,3 +404,5 @@ VALUES('featuretype_change', 'form_generic', 'tab_none', 'btn_accept', 'lyt_butt INSERT INTO config_form_fields (formname, formtype, tabname, columnname, layoutname, layoutorder, "datatype", widgettype, "label", tooltip, placeholder, ismandatory, isparent, iseditable, isautoupdate, isfilter, dv_querytext, dv_orderby_id, dv_isnullvalue, dv_parent_id, dv_querytext_filterc, stylesheet, widgetcontrols, widgetfunction, linkedobject, hidden, web_layoutorder) VALUES('featuretype_change', 'form_generic', 'tab_none', 'btn_cancel', 'lyt_buttons', 4,null, 'button', null, null, NULL,false,false, true, false, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL, false, NULL); + +delete from sys_table where id='v_ui_document';