diff options
author | Derek Moore <derek.k.moore@gmail.com> | 2012-03-15 16:38:56 -0700 |
---|---|---|
committer | Derek Moore <derek.k.moore@gmail.com> | 2012-03-15 16:38:56 -0700 |
commit | 252eaf21d5784936ca65ae8faba07db2d786fb31 (patch) | |
tree | 28cff9ee29810efde7b706eaa0fb73a73b9fb9f9 /mediagoblin/db/mongo/migrations.py | |
parent | 20a3e278bc237a4e23606cc2fc2f800f6a8dbc25 (diff) | |
download | mediagoblin-252eaf21d5784936ca65ae8faba07db2d786fb31.tar.lz mediagoblin-252eaf21d5784936ca65ae8faba07db2d786fb31.tar.xz mediagoblin-252eaf21d5784936ca65ae8faba07db2d786fb31.zip |
These are changes for issue #405, add email comment notification.
Diffstat (limited to 'mediagoblin/db/mongo/migrations.py')
-rw-r--r-- | mediagoblin/db/mongo/migrations.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mediagoblin/db/mongo/migrations.py b/mediagoblin/db/mongo/migrations.py index c5766b0d..3de3694e 100644 --- a/mediagoblin/db/mongo/migrations.py +++ b/mediagoblin/db/mongo/migrations.py @@ -153,3 +153,10 @@ def convert_video_media_data(database): assert len(document['media_data']) == 1 document['media_data'] = document['media_data']['video'] collection.save(document) + +@RegisterMigration(11) +def user_add_wants_comment_notification(database): + """ + Add wants_comment_notification to user model + """ + add_table_field(database, 'users', 'wants_comment_notification', True) |