Skip to content

Commit

Permalink
fix(trg sector): Add sector_type strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
xtorret committed Jan 2, 2025
1 parent 2985805 commit 217f2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws/ftrg/ws_gw_trg_edit_sector.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BEGIN
ELSIF TG_OP = 'UPDATE' THEN

UPDATE sector
SET sector_id=NEW.sector_id, name=NEW.name, descript=NEW.descript, macrosector_id=NEW.macrosector_id, the_geom=NEW.the_geom,
SET sector_id=NEW.sector_id, name=NEW.name, descript=NEW.descript, sector_type = NEW.sector_type, macrosector_id=NEW.macrosector_id, the_geom=NEW.the_geom,
undelete=NEW.undelete, graphconfig=NEW.graphconfig::json, stylesheet = NEW.stylesheet::json, active = NEW.active, parent_id = NEW.parent_id, pattern_id = NEW.pattern_id,
lastupdate=now(), lastupdate_user = current_user, avg_press = NEW.avg_press
WHERE sector_id=OLD.sector_id;
Expand Down

0 comments on commit 217f2cc

Please sign in to comment.