blob: 88a1f59018656bdff75839ef9b0c633c6f349772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
CREATE TABLE love (
id serial PRIMARY KEY,
time timestamptz,
artist text,
name text,
mbid text,
session text REFERENCES scrobbling_sessions(session_key),
"user" int REFERENCES users(user_id)
);
CREATE TABLE love_import (
lfm_name text,
time timestamptz DEFAULT NOW(),
"count" int
);
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
DROP TABLE love_import;
DROP TABLE love;
|