mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 15:03:09 -06:00
🐛 account_accounts table renamed to userapi_accounts.
This commit is contained in:
parent
b5e65427ba
commit
fb14a2d917
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue