Switching to real prod database for migration.

This commit is contained in:
Samuel Clay 2013-04-29 18:05:33 -07:00
parent bbd430ec59
commit a36f453ffd

View file

@ -29,7 +29,7 @@ class Migration(DataMigration):
)
for i, story in enumerate(stories):
db.prod_newsblur.starred_stories.update({"_id": story.id}, {"$set": {
db.newsblur.starred_stories.update({"_id": story.id}, {"$set": {
"story_hash": story.feed_guid_hash
}})
stories = MSharedStory.objects(user_id=user_id, story_hash__exists=False)\
@ -38,7 +38,7 @@ class Migration(DataMigration):
pymongo.ReadPreference.SECONDARY
)
for i, story in enumerate(stories):
db.prod_newsblur.shared_stories.update({"_id": story.id}, {"$set": {
db.newsblur.shared_stories.update({"_id": story.id}, {"$set": {
"story_hash": story.feed_guid_hash
}})