-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE IF NOT EXISTS scrobble_import ( lfm_name text, "from" timestamptz, "to" timestamptz, last_fetch timestamptz, done bool, PRIMARY KEY (lfm_name, "from", "to") ); CREATE INDEX scrobbles_time ON scrobbles(time DESC); -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back DROP TABLE scrobble_import; DROP INDEX scrobbles_time;