diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2016-12-11 18:54:26 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2016-12-11 18:54:26 -0500 |
| commit | 8d6525e381f23b2335dc2b86282baf2147dd900c (patch) | |
| tree | 75b00c2d44fee303293488d908edc5165e72184d /schema.sql | |
| parent | fc0f5810f93b6406aa23780bd9357c8169070cb2 (diff) | |
| download | lastfm-api-8d6525e381f23b2335dc2b86282baf2147dd900c.tar.gz | |
Update schema
string type doesn't exist in sqlite
Diffstat (limited to 'schema.sql')
| -rw-r--r-- | schema.sql | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -1,25 +1,25 @@ CREATE TABLE users ( - name string PRIMARY KEY, - password string + name text PRIMARY KEY, + password text ); CREATE TABLE sessions ( - user string, - token string PRIMARY KEY, - client string, - protocol string, - created int + user text, + key text PRIMARY KEY, + client text, + protocol text, + created int DEFAULT (strftime('%s', 'now')) ); CREATE TABLE scrobbles ( - artist string, - albumartist string, - trackname string, - album string, + artist text, + albumartist text, + trackname text, + album text, tracknumber int, duration int, time int, chosen bool, - mbid string, - session string + mbid text, + session text ); |
