mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding unique index on MStory.
This commit is contained in:
parent
06c27accd8
commit
50e960e412
1 changed files with 1 additions and 1 deletions
|
@ -1094,7 +1094,7 @@ class MFeedPage(mongo.Document):
|
|||
|
||||
class MStory(mongo.Document):
|
||||
'''A feed item'''
|
||||
story_feed_id = mongo.IntField()
|
||||
story_feed_id = mongo.IntField(unique_with='story_guid')
|
||||
story_date = mongo.DateTimeField()
|
||||
story_title = mongo.StringField(max_length=1024)
|
||||
story_content = mongo.StringField()
|
||||
|
|
Loading…
Add table
Reference in a new issue