You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/05/17 00:30:41 UTC

[50/50] [abbrv] 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/2e40a422
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2e40a422
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2e40a422

Branch: refs/heads/db/6208
Commit: 2e40a422e6db274cd32e77ee56792b31995d8560
Parents: 8ae6a00
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Mon May 13 16:23:13 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu May 16 21:34:11 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/2e40a422/ForgeWiki/forgewiki/model/wiki.py
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/model/wiki.py b/ForgeWiki/forgewiki/model/wiki.py
index a7ac642..a8df4c3 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='')