incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [13/50] git commit: [#6208] add unique index to wiki app_config_id+title
Date Tue, 28 May 2013 16:01:05 GMT
[#6208] add unique index to wiki app_config_id+title


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/338d69c9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/338d69c9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/338d69c9

Branch: refs/heads/cj/5913
Commit: 338d69c935490e7fd2ca4acb57e4489796509626
Parents: 65009be
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Mon May 13 16:23:13 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Thu May 23 16:05:28 2013 +0000

----------------------------------------------------------------------
 ForgeWiki/forgewiki/model/wiki.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/338d69c9/ForgeWiki/forgewiki/model/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/model/wiki.py b/ForgeWiki/forgewiki/model/wiki.py
index 6f054a1..0321240 100644
--- a/ForgeWiki/forgewiki/model/wiki.py
+++ b/ForgeWiki/forgewiki/model/wiki.py
@@ -87,6 +87,7 @@ class Page(VersionedArtifact, ActivityObject):
     class __mongometa__:
         name='page'
         history_class = PageHistory
+        unique_indexes = [('app_config_id', 'title')]
 
     title=FieldProperty(str)
     text=FieldProperty(schema.String, if_missing='')


Mime
View raw message