user_add_forgot_password_token_and_expires migration should set new fields to None...
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 8 Sep 2011 01:18:17 +0000 (20:18 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 8 Sep 2011 01:18:17 +0000 (20:18 -0500)
mediagoblin/db/migrations.py

index cf09e8175fd5ba73004d70aa62802ee7e4fd9dcc..3c3deee8feda3f0551564671a4078eedc27343ca 100644 (file)
@@ -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)