incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6208] add unique index to wiki app_config_id+title
Date Mon, 13 May 2013 16:23:23 GMT
Updated Branches:
  refs/heads/db/6208 [created] 314beda3e


[#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/314beda3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/314beda3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/314beda3

Branch: refs/heads/db/6208
Commit: 314beda3ecafb8e83dcd2cd598a0a6d43e4858f6
Parents: 8e9c17d
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Mon May 13 16:23:13 2013 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon May 13 16:23:13 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/314beda3/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='')


Mime
View raw message