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