[open-ils-commits] r9214 - trunk/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 3 22:59:44 EDT 2008
Author: miker
Date: 2008-04-03 22:23:13 -0400 (Thu, 03 Apr 2008)
New Revision: 9214
Modified:
trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
Log:
make the row unique
Modified: trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2008-04-04 02:11:04 UTC (rev 9213)
+++ trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2008-04-04 02:23:13 UTC (rev 9214)
@@ -381,7 +381,7 @@
lasso INT NOT NULL REFERENCES actor.org_lasso (id) ON DELETE CASCADE,
org_unit INT NOT NULL REFERENCES actor.org_unit (id) ON DELETE CASCADE
);
-CREATE INDEX ou_lasso_lasso_idx ON actor.org_lasso_map (lasso);
+CREATE UNIQUE INDEX ou_lasso_lasso_ou_idx ON actor.org_lasso_map (lasso, org_unit);
CREATE INDEX ou_lasso_org_unit_idx ON actor.org_lasso_map (org_unit);
CREATE TABLE actor.org_unit_proximity (
More information about the open-ils-commits
mailing list