diff --git a/migrations/000005_create_lastfm_table.down.sql b/migrations/000005_create_lastfm_table.down.sql new file mode 100644 index 0000000..1e5e721 --- /dev/null +++ b/migrations/000005_create_lastfm_table.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS lastfm_users; diff --git a/migrations/000005_create_lastfm_table.up.sql b/migrations/000005_create_lastfm_table.up.sql new file mode 100644 index 0000000..7676952 --- /dev/null +++ b/migrations/000005_create_lastfm_table.up.sql @@ -0,0 +1,10 @@ +CREATE TABLE IF NOT EXISTS lastfm_users ( + id bigserial PRIMARY KEY, + twitch_login text UNIQUE NOT NULL, + twitch_id text NOT NULL, + lastfm_username text NOT NULL +); + +INSERT INTO lastfm_users (twitch_login,twitch_id,lastfm_username) VALUES + ('nourylul','31437432','nouryqt'); +