Permalink
Browse files

Add index for migration of status history values.

  • Loading branch information...
1 parent 10a1076 commit fd20944902f03e60e8477dd6969a9d42d1c50701 @howbazaar howbazaar committed Mar 2, 2017
Showing with 2 additions and 0 deletions.
  1. +2 −0 state/allcollections.go
View
@@ -378,6 +378,8 @@ func allCollections() collectionSchema {
rawAccess: true,
indexes: []mgo.Index{{
Key: []string{"model-uuid", "globalkey", "updated"},
+ }, {
+ Key: []string{"model-uuid", "-updated"}, // used for migration
}},
},

0 comments on commit fd20944

Please sign in to comment.