summaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2016-12-11 18:54:26 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2016-12-11 18:54:26 -0500
commit8d6525e381f23b2335dc2b86282baf2147dd900c (patch)
tree75b00c2d44fee303293488d908edc5165e72184d /schema.sql
parentfc0f5810f93b6406aa23780bd9357c8169070cb2 (diff)
downloadlastfm-api-8d6525e381f23b2335dc2b86282baf2147dd900c.tar.gz
Update schema
string type doesn't exist in sqlite
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql26
1 files changed, 13 insertions, 13 deletions
diff --git a/schema.sql b/schema.sql
index d087f58..72211ee 100644
--- a/schema.sql
+++ b/schema.sql
@@ -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
);