From fb14a2d91791dd9a4fd55d7fffbe43d08b8cae81 Mon Sep 17 00:00:00 2001 From: danielaloni Date: Thu, 27 Oct 2022 16:45:42 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20account=5Faccounts=20table=20ren?= =?UTF-8?q?amed=20to=20userapi=5Faccounts.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- userapi/storage/postgres/deltas/2022080800000000_no_guests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userapi/storage/postgres/deltas/2022080800000000_no_guests.go b/userapi/storage/postgres/deltas/2022080800000000_no_guests.go index cc6126aad..9985fd822 100644 --- a/userapi/storage/postgres/deltas/2022080800000000_no_guests.go +++ b/userapi/storage/postgres/deltas/2022080800000000_no_guests.go @@ -8,7 +8,7 @@ import ( func UpNoGuests(ctx context.Context, tx *sql.Tx) error { // AddAccountType introduced a bug where each user that had was registered as a regular user, but without user_id, became a guest. - _, err := tx.ExecContext(ctx, "UPDATE account_accounts SET account_type = 1 WHERE account_type = 2;") + _, err := tx.ExecContext(ctx, "UPDATE userapi_accounts SET account_type = 1 WHERE account_type = 2;") if err != nil { return fmt.Errorf("failed to execute upgrade: %w", err) }