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/22 15:36:32 UTC

[06/14] git commit: [#6226] Added missing indexes for project_id for purge script

[#6226] Added missing indexes for project_id for purge script

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


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

Branch: refs/heads/cj/5913
Commit: e34ca49ab28ced893db93010d8560cd17e9879df
Parents: 0d1c69e
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Fri May 17 14:29:22 2013 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon May 20 18:25:40 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/notification.py |    1 +
 ForgeChat/forgechat/model/chat.py   |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e34ca49a/Allura/allura/model/notification.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/notification.py b/Allura/allura/model/notification.py
index 6326bcc..3c3517f 100644
--- a/Allura/allura/model/notification.py
+++ b/Allura/allura/model/notification.py
@@ -69,6 +69,7 @@ class Notification(MappedClass):
     class __mongometa__:
         session = main_orm_session
         name = 'notification'
+        indexes = ['project_id']
 
     _id = FieldProperty(str, if_missing=h.gen_message_id)
 

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e34ca49a/ForgeChat/forgechat/model/chat.py
----------------------------------------------------------------------
diff --git a/ForgeChat/forgechat/model/chat.py b/ForgeChat/forgechat/model/chat.py
index 0035946..981dd38 100644
--- a/ForgeChat/forgechat/model/chat.py
+++ b/ForgeChat/forgechat/model/chat.py
@@ -28,6 +28,7 @@ class ChatChannel(MappedClass):
     class __mongometa__:
         name = 'globals'
         session = M.main_orm_session
+        indexes = ['project_id']
         unique_indexes = [ 'channel' ]
 
     _id = FieldProperty(S.ObjectId)