Permalink
Browse files

reorg migrations, first_use field

  • Loading branch information...
1 parent 8f9985d commit ae1bfc4957cec35f7f2835b0d48daf298a62807f Eugene Efremov committed May 14, 2012
View
5 app.py
@@ -83,6 +83,11 @@ def GET(self):
address=make_unique_email(),
token=access_token,
secret=access_token_secret,
+ first_use=datetime.date.today(),
+ last_use=datetime.date.today(),
+ emails=0,
+ searches=0,
+ songs=0,
prefs=BSONPostgresSerializer.from_dict({}))
result = list(db.select(USER_TABLE, what='address, prefs, token, secret', where="rdio_user_id=%i" % user_id))[0]
@@ -0,0 +1 @@
+ALTER TABLE discodb.discoversong_user ADD COLUMN first_use date;

0 comments on commit ae1bfc4

Please sign in to comment.