From: Christopher Allan Webber Date: Thu, 8 Sep 2011 01:18:17 +0000 (-0500) Subject: user_add_forgot_password_token_and_expires migration should set new fields to None... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2db31581ed597cab1d148091c1fe8975ee9d70d2;p=mediagoblin.git user_add_forgot_password_token_and_expires migration should set new fields to None/null --- diff --git a/mediagoblin/db/migrations.py b/mediagoblin/db/migrations.py index cf09e817..3c3deee8 100644 --- a/mediagoblin/db/migrations.py +++ b/mediagoblin/db/migrations.py @@ -101,9 +101,9 @@ def user_add_forgot_password_token_and_expires(database): """ database['users'].update( {'fp_verification_key': {'$exists': False}}, - {'$set': {'fp_verification_key': ''}}, + {'$set': {'fp_verification_key': None}}, multi=True) database['users'].update( {'fp_token_expire': {'$exists': False}}, - {'$set': {'fp_token_expire': ''}}, + {'$set': {'fp_token_expire': None}}, multi=True)