From: dbs Date: Mon, 1 Dec 2008 21:18:25 +0000 (+0000) Subject: Prevent locations with the same name being generated for the same library X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=184eea7ae8951657792f876918be8b4f38c4d41c;p=Evergreen.git Prevent locations with the same name being generated for the same library git-svn-id: svn://svn.open-ils.org/ILS/trunk@11373 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/040.schema.asset.sql b/Open-ILS/src/sql/Pg/040.schema.asset.sql index d6952e8282..098792f03e 100644 --- a/Open-ILS/src/sql/Pg/040.schema.asset.sql +++ b/Open-ILS/src/sql/Pg/040.schema.asset.sql @@ -28,7 +28,8 @@ CREATE TABLE asset.copy_location ( holdable BOOL NOT NULL DEFAULT TRUE, hold_verify BOOL NOT NULL DEFAULT FALSE, opac_visible BOOL NOT NULL DEFAULT TRUE, - circulate BOOL NOT NULL DEFAULT TRUE + circulate BOOL NOT NULL DEFAULT TRUE, + CONSTRAINT acl_name_once_per_lib UNIQUE (name, owning_lib) ); CREATE TABLE asset.copy (