From: erickson Date: Fri, 4 Sep 2009 17:26:02 +0000 (+0000) Subject: Loosened constraint on group penalty thresholds. You can now define threholds for... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f632cdf8aac6f76895bd3c2285db0fc7db1a261d;p=Evergreen.git Loosened constraint on group penalty thresholds. You can now define threholds for the same group as long as they have a different context org unit 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/branches/rel_1_6@13962 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/006.schema.permissions.sql b/Open-ILS/src/sql/Pg/006.schema.permissions.sql index 424bb1d086..66126b04a4 100644 --- a/Open-ILS/src/sql/Pg/006.schema.permissions.sql +++ b/Open-ILS/src/sql/Pg/006.schema.permissions.sql @@ -45,7 +45,7 @@ CREATE TABLE permission.grp_penalty_threshold ( 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 (