To Update:
ALTER TABLE permission.grp_penalty_threshold DROP CONSTRAINT penalty_grp_once;
ALTER TABLE permission.grp_penalty_threshold ADD CONSTRAINT penalty_grp_once UNIQUE (grp,penalty,org_unit);
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13961
dcc99617-32d9-48b4-a31d-
7c20da2025e4
org_unit INT NOT NULL REFERENCES actor.org_unit (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
penalty INT NOT NULL REFERENCES config.standing_penalty (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
threshold NUMERIC(8,2) NOT NULL,
- CONSTRAINT penalty_grp_once UNIQUE (grp,penalty)
+ CONSTRAINT penalty_grp_once UNIQUE (grp,penalty,org_unit)
);
CREATE TABLE permission.grp_perm_map (