Skip to content

Commit

Permalink
fix: wrong spelling on two UD views
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbofill committed Aug 28, 2024
1 parent 52dfc93 commit bdd0ac0
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 17 deletions.
16 changes: 8 additions & 8 deletions ud/schema_model/ddlview_schema_model.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6431,10 +6431,10 @@ CREATE VIEW v_rpt_comp_instability_index AS


--
-- Name: v_rpt_comp_lidperfomance_sum; Type: VIEW; Schema: Schema; Owner: -
-- Name: v_rpt_comp_lidperformance_sum; Type: VIEW; Schema: Schema; Owner: -
--

CREATE VIEW v_rpt_comp_lidperfomance_sum AS
CREATE VIEW v_rpt_comp_lidperformance_sum AS
SELECT rpt_lidperformance_sum.id,
rpt_lidperformance_sum.result_id,
rpt_lidperformance_sum.subc_id,
Expand Down Expand Up @@ -6771,10 +6771,10 @@ CREATE VIEW v_rpt_comp_subcatchrunoff_sum AS


--
-- Name: v_rpt_comp_subcatchwasoff_sum; Type: VIEW; Schema: Schema; Owner: -
-- Name: v_rpt_comp_subcatchwashoff_sum; Type: VIEW; Schema: Schema; Owner: -
--

CREATE VIEW v_rpt_comp_subcatchwasoff_sum AS
CREATE VIEW v_rpt_comp_subcatchwashoff_sum AS
SELECT rpt_subcatchwashoff_sum.id,
rpt_subcatchwashoff_sum.result_id,
rpt_subcatchwashoff_sum.subc_id,
Expand Down Expand Up @@ -6960,10 +6960,10 @@ CREATE VIEW v_rpt_instability_index AS


--
-- Name: v_rpt_lidperfomance_sum; Type: VIEW; Schema: Schema; Owner: -
-- Name: v_rpt_lidperformance_sum; Type: VIEW; Schema: Schema; Owner: -
--

CREATE VIEW v_rpt_lidperfomance_sum AS
CREATE VIEW v_rpt_lidperformance_sum AS
SELECT rpt_lidperformance_sum.id,
rpt_lidperformance_sum.result_id,
rpt_lidperformance_sum.subc_id,
Expand Down Expand Up @@ -7386,10 +7386,10 @@ CREATE VIEW v_rpt_subcatchrunoff_sum AS


--
-- Name: v_rpt_subcatchwasoff_sum; Type: VIEW; Schema: Schema; Owner: -
-- Name: v_rpt_subcatchwashoff_sum; Type: VIEW; Schema: Schema; Owner: -
--

CREATE VIEW v_rpt_subcatchwasoff_sum AS
CREATE VIEW v_rpt_subcatchwashoff_sum AS
SELECT rpt_subcatchwashoff_sum.id,
rpt_subcatchwashoff_sum.result_id,
rpt_subcatchwashoff_sum.subc_id,
Expand Down
16 changes: 8 additions & 8 deletions ud/schema_model/dml_schema_model.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17563,7 +17563,7 @@ INSERT INTO sys_style VALUES (163, 'v_rpt_subcatchrunoff_sum', 'qml', '<!DOCTYPE
<layerOpacity>1</layerOpacity>
<layerGeometryType>2</layerGeometryType>
</qgis>', true);
INSERT INTO sys_style VALUES (164, 'v_rpt_subcatchwasoff_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
INSERT INTO sys_style VALUES (164, 'v_rpt_subcatchwashoff_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
<qgis hasScaleBasedVisibilityFlag="0" simplifyDrawingTol="1" simplifyDrawingHints="1" simplifyLocal="1" maxScale="-4.6566128730773926e-10" symbologyReferenceScale="-1" minScale="100000000" simplifyAlgorithm="0" simplifyMaxScale="1" styleCategories="Symbology|Rendering" version="3.22.4-Białowieża">
<renderer-v2 forceraster="0" referencescale="-1" symbollevels="0" type="singleSymbol" enableorderby="0">
<symbols>
Expand Down Expand Up @@ -17618,7 +17618,7 @@ INSERT INTO sys_style VALUES (164, 'v_rpt_subcatchwasoff_sum', 'qml', '<!DOCTYPE
<layerOpacity>1</layerOpacity>
<layerGeometryType>2</layerGeometryType>
</qgis>', true);
INSERT INTO sys_style VALUES (165, 'v_rpt_lidperfomance_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
INSERT INTO sys_style VALUES (165, 'v_rpt_lidperformance_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
<qgis hasScaleBasedVisibilityFlag="0" simplifyDrawingTol="1" simplifyDrawingHints="1" simplifyLocal="1" maxScale="-4.6566128730773926e-10" symbologyReferenceScale="-1" minScale="100000000" simplifyAlgorithm="0" simplifyMaxScale="1" styleCategories="Symbology|Rendering" version="3.22.4-Białowieża">
<renderer-v2 forceraster="0" referencescale="-1" symbollevels="0" type="singleSymbol" enableorderby="0">
<symbols>
Expand Down Expand Up @@ -19349,7 +19349,7 @@ INSERT INTO sys_style VALUES (178, 'v_rpt_comp_subcatchrunoff_sum', 'qml', '<!DO
<layerOpacity>1</layerOpacity>
<layerGeometryType>2</layerGeometryType>
</qgis>', true);
INSERT INTO sys_style VALUES (179, 'v_rpt_comp_subcatchwasoff_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
INSERT INTO sys_style VALUES (179, 'v_rpt_comp_subcatchwashoff_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
<qgis hasScaleBasedVisibilityFlag="0" simplifyDrawingTol="1" simplifyDrawingHints="1" simplifyLocal="1" maxScale="-4.6566128730773926e-10" symbologyReferenceScale="-1" minScale="100000000" simplifyAlgorithm="0" simplifyMaxScale="1" styleCategories="Symbology|Rendering" version="3.22.4-Białowieża">
<renderer-v2 forceraster="0" referencescale="-1" symbollevels="0" type="singleSymbol" enableorderby="0">
<symbols>
Expand Down Expand Up @@ -19404,7 +19404,7 @@ INSERT INTO sys_style VALUES (179, 'v_rpt_comp_subcatchwasoff_sum', 'qml', '<!DO
<layerOpacity>1</layerOpacity>
<layerGeometryType>2</layerGeometryType>
</qgis>', true);
INSERT INTO sys_style VALUES (180, 'v_rpt_comp_lidperfomance_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
INSERT INTO sys_style VALUES (180, 'v_rpt_comp_lidperformance_sum', 'qml', '<!DOCTYPE qgis PUBLIC ''http://mrcc.com/qgis.dtd'' ''SYSTEM''>
<qgis hasScaleBasedVisibilityFlag="0" simplifyDrawingTol="1" simplifyDrawingHints="1" simplifyLocal="1" maxScale="-4.6566128730773926e-10" symbologyReferenceScale="-1" minScale="100000000" simplifyAlgorithm="0" simplifyMaxScale="1" styleCategories="Symbology|Rendering" version="3.22.4-Białowieża">
<renderer-v2 forceraster="0" referencescale="-1" symbollevels="0" type="singleSymbol" enableorderby="0">
<symbols>
Expand Down Expand Up @@ -22610,7 +22610,7 @@ INSERT INTO sys_table VALUES ('v_rpt_outfallflow_sum', 'Shows the results of out
INSERT INTO sys_table VALUES ('v_rpt_outfallload_sum', 'Shows the results of outfall load simulations.', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 11, 'Outfall load', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_storagevol_sum', 'Shows the results of storage volume simulations', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 12, 'Storage Volume', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_subcatchrunoff_sum', 'Shows the results from subcatchments runoff simulations.', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 13, 'Subcatchment Runoff', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_subcatchwasoff_sum', 'Shows the results of subcatchment washoff simulations.', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 14, 'Subcatchment Washoff', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_subcatchwashoff_sum', 'Shows the results of subcatchment washoff simulations.', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 14, 'Subcatchment Washoff', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_nodeflooding_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between flooded nodes results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 1, 'Node Flooding Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_nodesurcharge_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between surcharge value of nodes results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 2, 'Node Surcharge Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_nodeinflow_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between inflow value of nodes results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 3, 'Node Inflow Compare', NULL, NULL, NULL, 'core', NULL, NULL);
Expand All @@ -22623,7 +22623,7 @@ INSERT INTO sys_table VALUES ('v_rpt_comp_outfallflow_sum', 'Shows the result se
INSERT INTO sys_table VALUES ('v_rpt_comp_outfallload_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between outfall load simulations results..', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 11, 'Outfall Load Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_storagevol_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between storage volume simulations results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 12, 'Storage Volume Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_subcatchrunoff_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between subcatchments runoff simulations results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 13, 'Subcatchment Runoff Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_subcatchwasoff_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between subcatchment washoff simulations results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 14, 'Subcatchment Washoff Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_subcatchwashoff_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between subcatchment washoff simulations results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 14, 'Subcatchment Washoff Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('plan_psector_x_other', 'Table of other objects related to plan sectors', 'role_master', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('plan_psector_x_arc', 'Table of arcs related to plan sectors', 'role_master', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('plan_psector_x_node', 'Table of nodes related to plan sectors', 'role_master', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'core', NULL, NULL);
Expand Down Expand Up @@ -22672,8 +22672,8 @@ INSERT INTO sys_table VALUES ('v_plan_psector_link', 'View to show links related
INSERT INTO sys_table VALUES ('v_plan_psector_node', 'View to show nodes related to psectors. Useful to show nodes which will be obsolete in psectors', 'role_basic', 2, '{"level_1":"MASTERPLAN","level_2":"PSECTOR"}', 7, 'Plan psector node', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('inp_gully', 'Table to manage gullies on epa', 'role_edit', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_edit_inp_dwf', 'editable view for dry weather flows', 'role_epa', NULL, '{"level_1":"EPA","level_2":"HYDRAULICS"}', 13, 'Inp Dwf', NULL, NULL, NULL, 'core', NULL, '{"pkey":"dwfscenario_id, node_id"}');
INSERT INTO sys_table VALUES ('v_rpt_lidperfomance_sum', 'Shows the results of LID performance simulations.', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 15, 'LID Performance', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_lidperfomance_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between LID performance simulations results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 15, 'LID Performance Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_lidperformance_sum', 'Shows the results of LID performance simulations.', 'role_basic', 0, '{"level_1":"EPA","level_2":"RESULTS"}', 15, 'LID Performance', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('v_rpt_comp_lidperformance_sum', 'Shows the result selecteb by the comparision selector in order to show into GIS project the data from result_selector and result_comparisor to compare between LID performance simulations results.', 'role_basic', 0, '{"level_1":"EPA","level_2":"COMPARE"}', 15, 'LID Performance Compare', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('vi_subcatch2outlet', 'Shows the information about the relation between subcatchments and nodes', 'role_basic', NULL, '{"level_1":"EPA","level_2":"HYDROLOGY"}', 3, 'Subcatchment outlet', NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('rpt_arcpollutant_sum', 'Table to store arcpollutant values', 'role_epa', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'core', NULL, NULL);
INSERT INTO sys_table VALUES ('inp_dscenario_controls', '"Table to manage scenario for controls"', 'role_epa', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'core', NULL, NULL);
Expand Down
72 changes: 72 additions & 0 deletions updates/36/36012/ud/ddlview.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4445,3 +4445,75 @@ WHERE plan_psector_x_gully.psector_id = selector_psector.psector_id AND selector

DROP VIEW IF EXISTS v_anl_pgrouting_arc;
DROP VIEW IF EXISTS v_anl_pgrouting_node;


DROP VIEW IF EXISTS v_rpt_lidperfomance_sum;
CREATE OR REPLACE VIEW v_rpt_lidperformance_sum AS
SELECT rpt_lidperformance_sum.id,
rpt_lidperformance_sum.result_id,
rpt_lidperformance_sum.subc_id,
rpt_lidperformance_sum.lidco_id,
rpt_lidperformance_sum.tot_inflow,
rpt_lidperformance_sum.evap_loss,
rpt_lidperformance_sum.infil_loss,
rpt_lidperformance_sum.surf_outf,
rpt_lidperformance_sum.drain_outf,
rpt_lidperformance_sum.init_stor,
rpt_lidperformance_sum.final_stor,
rpt_lidperformance_sum.per_error,
inp_subcatchment.sector_id,
inp_subcatchment.the_geom
FROM selector_rpt_main,
(inp_subcatchment
JOIN rpt_lidperformance_sum ON (((rpt_lidperformance_sum.subc_id)::text = (inp_subcatchment.subc_id)::text)))
WHERE (((rpt_lidperformance_sum.result_id)::text = (selector_rpt_main.result_id)::text) AND (selector_rpt_main.cur_user = "current_user"()));

DROP VIEW IF EXISTS v_rpt_comp_lidperfomance_sum;
CREATE OR REPLACE VIEW v_rpt_comp_lidperformance_sum AS
SELECT rpt_lidperformance_sum.id,
rpt_lidperformance_sum.result_id,
rpt_lidperformance_sum.subc_id,
rpt_lidperformance_sum.lidco_id,
rpt_lidperformance_sum.tot_inflow,
rpt_lidperformance_sum.evap_loss,
rpt_lidperformance_sum.infil_loss,
rpt_lidperformance_sum.surf_outf,
rpt_lidperformance_sum.drain_outf,
rpt_lidperformance_sum.init_stor,
rpt_lidperformance_sum.final_stor,
rpt_lidperformance_sum.per_error,
inp_subcatchment.sector_id,
inp_subcatchment.the_geom
FROM selector_rpt_compare,
(inp_subcatchment
JOIN rpt_lidperformance_sum ON (((rpt_lidperformance_sum.subc_id)::text = (inp_subcatchment.subc_id)::text)))
WHERE (((rpt_lidperformance_sum.result_id)::text = (selector_rpt_compare.result_id)::text) AND (selector_rpt_compare.cur_user = "current_user"()));

DROP VIEW IF EXISTS v_rpt_subcatchwasoff_sum;
CREATE OR REPLACE VIEW v_rpt_subcatchwashoff_sum AS
SELECT rpt_subcatchwashoff_sum.id,
rpt_subcatchwashoff_sum.result_id,
rpt_subcatchwashoff_sum.subc_id,
rpt_subcatchwashoff_sum.poll_id,
rpt_subcatchwashoff_sum.value,
inp_subcatchment.sector_id,
inp_subcatchment.the_geom
FROM selector_rpt_main,
(inp_subcatchment
JOIN rpt_subcatchwashoff_sum ON (((rpt_subcatchwashoff_sum.subc_id)::text = (inp_subcatchment.subc_id)::text)))
WHERE (((rpt_subcatchwashoff_sum.result_id)::text = (selector_rpt_main.result_id)::text) AND (selector_rpt_main.cur_user = "current_user"()));

DROP VIEW IF EXISTS v_rpt_comp_subcatchwasoff_sum;
CREATE OR REPLACE VIEW v_rpt_comp_subcatchwashoff_sum AS
SELECT rpt_subcatchwashoff_sum.id,
rpt_subcatchwashoff_sum.result_id,
rpt_subcatchwashoff_sum.subc_id,
rpt_subcatchwashoff_sum.poll_id,
rpt_subcatchwashoff_sum.value,
inp_subcatchment.sector_id,
inp_subcatchment.the_geom
FROM selector_rpt_compare,
(inp_subcatchment
JOIN rpt_subcatchwashoff_sum ON (((rpt_subcatchwashoff_sum.subc_id)::text = (inp_subcatchment.subc_id)::text)))
WHERE (((rpt_subcatchwashoff_sum.result_id)::text = (selector_rpt_compare.result_id)::text) AND (selector_rpt_compare.cur_user = "current_user"()));

14 changes: 13 additions & 1 deletion updates/36/36012/ud/dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,16 @@ INSERT INTO sys_table (id, descript, sys_role, "source") VALUES('rpt_node', NULL
INSERT INTO sys_table (id, descript, sys_role, "source") VALUES('rpt_arc', NULL, 'role_epa', 'core') ON CONFLICT (id) DO NOTHING ;
INSERT INTO sys_table (id, descript, sys_role, "source") VALUES('selector_period', NULL, 'role_basic', 'core') ON CONFLICT (id) DO NOTHING ;
INSERT INTO sys_table (id, descript, sys_role, "source") VALUES('v_ui_hydroval', NULL, 'role_basic', 'core') ON CONFLICT (id) DO NOTHING ;
INSERT INTO sys_table (id, descript, sys_role, "source") VALUES('v_ui_drainzone', NULL, 'role_basic', 'core') ON CONFLICT (id) DO NOTHING ;
INSERT INTO sys_table (id, descript, sys_role, "source") VALUES('v_ui_drainzone', NULL, 'role_basic', 'core') ON CONFLICT (id) DO NOTHING ;

UPDATE sys_table SET id='v_rpt_lidperformance_sum' WHERE id='v_rpt_lidperfomance_sum';
UPDATE sys_table SET id='v_rpt_comp_lidperformance_sum' WHERE id='v_rpt_comp_lidperfomance_sum';
UPDATE sys_style SET layername='v_rpt_lidperformance_sum' WHERE layername='v_rpt_lidperfomance_sum';
UPDATE sys_style SET layername='v_rpt_comp_lidperformance_sum' WHERE layername='v_rpt_comp_lidperfomance_sum';

UPDATE sys_table SET id='v_rpt_subcatchwashoff_sum' WHERE id='v_rpt_subcatchwasoff_sum';
UPDATE sys_table SET id='v_rpt_comp_subcatchwashoff_sum' WHERE id='v_rpt_comp_subcatchwasoff_sum';
UPDATE sys_style SET layername='v_rpt_subcatchwashoff_sum' WHERE layername='v_rpt_subcatchwasoff_sum';
UPDATE sys_style SET layername='v_rpt_comp_subcatchwashoff_sum' WHERE layername='v_rpt_comp_subcatchwasoff_sum';
UPDATE config_form_fields SET formname='v_rpt_subcatchwashoff_sum' WHERE formname='v_rpt_subcatchwasoff_sum';
UPDATE config_form_fields SET formname='v_rpt_comp_subcatchwashoff_sum' WHERE formname='v_rpt_comp_subcatchwasoff_sum';

0 comments on commit bdd0ac0

Please sign in to comment.