[open-ils-commits] r11373 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 1 16:18:29 EST 2008


Author: dbs
Date: 2008-12-01 16:18:25 -0500 (Mon, 01 Dec 2008)
New Revision: 11373

Modified:
   trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql
Log:
Prevent locations with the same name being generated for the same library


Modified: trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql	2008-12-01 20:36:48 UTC (rev 11372)
+++ trunk/Open-ILS/src/sql/Pg/040.schema.asset.sql	2008-12-01 21:18:25 UTC (rev 11373)
@@ -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