🐛 account_accounts table renamed to userapi_accounts.

This commit is contained in:
danielaloni 2022-10-27 16:45:42 +03:00
parent b5e65427ba
commit fb14a2d917

View file

@ -8,7 +8,7 @@ import (
func UpNoGuests(ctx context.Context, tx *sql.Tx) error { 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. // 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 { if err != nil {
return fmt.Errorf("failed to execute upgrade: %w", err) return fmt.Errorf("failed to execute upgrade: %w", err)
} }