incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#6226] Added missing indexes for project_id for purge script
Date Fri, 17 May 2013 14:30:00 GMT
Updated Branches:
  refs/heads/cj/6226 [created] 6691d7ca1


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

Signed-off-by: Cory Johns <cjohns@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/6691d7ca
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/6691d7ca
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/6691d7ca

Branch: refs/heads/cj/6226
Commit: 6691d7ca14f6c63142adba846da4a898f8fa3af9
Parents: fbf88bb
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Fri May 17 14:29:22 2013 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Fri May 17 14:29:22 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/6691d7ca/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/6691d7ca/ForgeChat/forgechat/model/chat.py
----------------------------------------------------------------------
diff --git a/ForgeChat/forgechat/model/chat.py b/ForgeChat/forgechat/model/chat.py
index 0035946..a81f0f9 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)


Mime
View raw message