From bbc9a79996e231dd12c52bf4999dfcb0a19625fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 18 Jun 2023 00:24:53 +0200 Subject: [PATCH] Fix bug in migration script --- scnserver/cmd/migrate/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scnserver/cmd/migrate/main.go b/scnserver/cmd/migrate/main.go index 03a958e..2bb38e5 100644 --- a/scnserver/cmd/migrate/main.go +++ b/scnserver/cmd/migrate/main.go @@ -306,8 +306,8 @@ func migrateUser(ctx context.Context, dbnew sq.DB, dbold sq.DB, user OldUser, ap _, err = dbnew.Exec(ctx, "INSERT INTO subscriptions (subscription_id, subscriber_user_id, channel_owner_user_id, channel_internal_name, channel_id, timestamp_created, confirmed) VALUES (:sid, :suid, :ouid, :cnam, :cid, :ts, :conf)", sq.PP{ "sid": models.NewSubscriptionID(), - "suid": user.UserId, - "ouid": user.UserId, + "suid": userid, + "ouid": userid, "cnam": "main", "cid": mainChannelID, "ts": user.TimestampCreated.UnixMilli(),