You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/05/23 18:05:56 UTC

[2/2] git commit: [#6208] add unique index to wiki app_config_id+title

[#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/master
Commit: 338d69c935490e7fd2ca4acb57e4489796509626
Parents: 65009be
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Mon May 13 16:23:13 2013 +0000
Committer: Cory Johns <cj...@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='')