[open-ils-commits] r11374 - branches/rel_1_4/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 1 16:57:42 EST 2008
Author: dbs
Date: 2008-12-01 16:57:38 -0500 (Mon, 01 Dec 2008)
New Revision: 11374
Modified:
branches/rel_1_4/Open-ILS/src/sql/Pg/040.schema.asset.sql
Log:
Backport r11373 from trunk to protect against duplicate locations at the same library
Modified: branches/rel_1_4/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- branches/rel_1_4/Open-ILS/src/sql/Pg/040.schema.asset.sql 2008-12-01 21:18:25 UTC (rev 11373)
+++ branches/rel_1_4/Open-ILS/src/sql/Pg/040.schema.asset.sql 2008-12-01 21:57:38 UTC (rev 11374)
@@ -28,7 +28,8 @@
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 (
More information about the open-ils-commits
mailing list