mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add migration for lastfm_users
This commit is contained in:
parent
27d2bed8ca
commit
05c22e0093
1
migrations/000005_create_lastfm_table.down.sql
Normal file
1
migrations/000005_create_lastfm_table.down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
DROP TABLE IF EXISTS lastfm_users;
|
10
migrations/000005_create_lastfm_table.up.sql
Normal file
10
migrations/000005_create_lastfm_table.up.sql
Normal file
|
@ -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');
|
||||
|
Loading…
Reference in a new issue