From c82ae739e5f3b151bd671b6a8d8e2b05e356f658 Mon Sep 17 00:00:00 2001 From: lyx0 <66651385+lyx0@users.noreply.github.com> Date: Sat, 4 Mar 2023 20:25:17 +0000 Subject: [PATCH] fix lastfm models --- migrations/000005_create_lastfm_table.up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/000005_create_lastfm_table.up.sql b/migrations/000005_create_lastfm_table.up.sql index 7676952..2143600 100644 --- a/migrations/000005_create_lastfm_table.up.sql +++ b/migrations/000005_create_lastfm_table.up.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS lastfm_users ( id bigserial PRIMARY KEY, - twitch_login text UNIQUE NOT NULL, - twitch_id text NOT NULL, + twitch_login text NOT NULL, + twitch_id text UNIQUE NOT NULL, lastfm_username text NOT NULL );