server/mirrormanager/schema_updates/__init__.py | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 79c72e2a9ff89b1244a56c033ee0911cbc5f56d6
Author: Matt Domsch <Matt_Domsch(a)dell.com>
Date: Fri Apr 29 01:21:08 2011 -0500
add uniqueness index to host_location
diff --git a/server/mirrormanager/schema_updates/__init__.py
b/server/mirrormanager/schema_updates/__init__.py
index 4490464..234f188 100644
--- a/server/mirrormanager/schema_updates/__init__.py
+++ b/server/mirrormanager/schema_updates/__init__.py
@@ -17,6 +17,7 @@ class NewHostLocation(SQLObject):
table = 'host_location'
host = ForeignKey('Host')
location = ForeignKey('Location')
+ index = DatabaseIndex('host', 'location', unique=True)
def change_tables():
Show replies by date