mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Fix another one
This commit is contained in:
parent
8daddef611
commit
a863754c4c
|
|
@ -58,7 +58,7 @@ func UpRenameTables(ctx context.Context, tx *sql.Tx) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
query = strings.Replace(query, old, new, 1)
|
query = strings.Replace(query, old, new, 1)
|
||||||
if _, err := tx.ExecContext(ctx, "DROP INDEX %s;", old); err != nil {
|
if _, err := tx.ExecContext(ctx, fmt.Sprintf("DROP INDEX %s;", old)); err != nil {
|
||||||
return fmt.Errorf("drop index %q to %q error: %w", old, new, err)
|
return fmt.Errorf("drop index %q to %q error: %w", old, new, err)
|
||||||
}
|
}
|
||||||
if _, err := tx.ExecContext(ctx, query); err != nil {
|
if _, err := tx.ExecContext(ctx, query); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue