Skip to content

Commit

Permalink
append to delta file version 1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
tudorbarascu authored and 3nids committed Sep 20, 2017
1 parent 1e296a7 commit f34878a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions update/delta/delta_1.2.8_schema_visible_perf.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fixes performance issues if calculation is done on client side.
* schema_visible field is dropped on network_element as it is not used (was introduced for valves at the origin)
* _schema_visible and schema_force_visible are added to pipe and valve tables by the qwat_sys.fn_enable_schemavisible function
* old function qwat_sys.fn_enable_schemaview is enhanced and renamed
* see https://github.com/qwat/qwat-data-model/pull/194
*/
BEGIN;

Expand Down Expand Up @@ -89,6 +90,10 @@ UPDATE qwat_od.valve SET _schema_visible = schema_visible FROM qwat_vl.valve_fun
ALTER TABLE qwat_od.pipe DROP COLUMN schema_force_visible_old;
ALTER TABLE qwat_od.valve DROP COLUMN schema_force_visible_old;

-- also add automatic valve actuation to fit automatic air release valve
-- see https://github.com/qwat/qwat-data-model/pull/191
INSERT INTO qwat_vl.valve_actuation (id, value_en, value_fr, value_ro ) VALUES (6405, 'automatic', 'automatique', 'automată');

UPDATE qwat_sys.versions SET version = '1.2.8';

COMMIT;

0 comments on commit f34878a

Please sign in to comment.