Skip to content

Commit

Permalink
fix(expl_id2): remove expl_id2 from trg_edit_sector
Browse files Browse the repository at this point in the history
  • Loading branch information
mguzman14 committed Aug 13, 2024
1 parent 38cd989 commit 4d95bb8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ud/ftrg/ud_gw_trg_edit_sector.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ BEGIN

NEW.active = TRUE;

INSERT INTO sector (sector_id, name, descript, macrosector_id, the_geom, undelete, active, parent_id, stylesheet, expl_id2)
INSERT INTO sector (sector_id, name, descript, macrosector_id, the_geom, undelete, active, parent_id, stylesheet)
VALUES (NEW.sector_id, NEW.name, NEW.descript, NEW.macrosector_id, NEW.the_geom, NEW.undelete, NEW.active, NEW.parent_id,
NEW.stylesheet, NEW.expl_id2);
NEW.stylesheet);

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,
undelete=NEW.undelete, active=NEW.active, lastupdate=now(), lastupdate_user = current_user, stylesheet=NEW.stylesheet,
expl_id2 = NEW.expl_id2
undelete=NEW.undelete, active=NEW.active, lastupdate=now(), lastupdate_user = current_user, stylesheet=NEW.stylesheet
WHERE sector_id=OLD.sector_id;

ELSIF TG_OP = 'DELETE' THEN
Expand Down

0 comments on commit 4d95bb8

Please sign in to comment.