From: Bill Erickson Date: Fri, 13 Apr 2012 19:39:18 +0000 (-0400) Subject: Copy Location Circ Limit Sets : DB/IDL 1 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=49ee8a76962bf25c4494dfb9b949b0c5b0f969da;p=evergreen%2Fequinox.git Copy Location Circ Limit Sets : DB/IDL 1 Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 375f93fa5d..f4052cdbbb 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -1568,6 +1568,31 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_loc_circ_limits.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_loc_circ_limits.sql new file mode 100644 index 0000000000..1e9ce1aa8d --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.copy_loc_circ_limits.sql @@ -0,0 +1,14 @@ + +-- Linkage between limit sets and circ mods +CREATE TABLE config.circ_limit_set_copy_loc_map ( + id SERIAL PRIMARY KEY, + limit_set INT NOT NULL REFERENCES config.circ_limit_set (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, + copy_loc INT NOT NULL REFERENCES asset.copy_location (id) ON DELETE CASCADE ON UPDATE CASCADE DEFERRABLE INITIALLY DEFERRED, + CONSTRAINT cl_once_per_set UNIQUE (limit_set, copy_loc) +); + +/* +-- UNDO +DROP TABLE IF EXISTS config.circ_limit_set_copy_loc_map; +*/ +