mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-02-16 16:04:27 -06:00
don't commit
This commit is contained in:
parent
8cac948d7e
commit
594ab15007
|
@ -45,11 +45,6 @@ func UpServerNames(ctx context.Context, tx *sql.Tx, serverName gomatrixserverlib
|
||||||
return fmt.Errorf("add server name to %q error: %w", table, err)
|
return fmt.Errorf("add server name to %q error: %w", table, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Commit at this point, because it's possible that altering indices will
|
|
||||||
// fail and force us to roll back.
|
|
||||||
if err := tx.Commit(); err != nil {
|
|
||||||
return fmt.Errorf("can't commit after column addition: %w", err)
|
|
||||||
}
|
|
||||||
for newTable, oldTable := range serverNamesDropPK {
|
for newTable, oldTable := range serverNamesDropPK {
|
||||||
q := fmt.Sprintf(
|
q := fmt.Sprintf(
|
||||||
"ALTER TABLE IF EXISTS %s DROP CONSTRAINT IF EXISTS %s;",
|
"ALTER TABLE IF EXISTS %s DROP CONSTRAINT IF EXISTS %s;",
|
||||||
|
|
Loading…
Reference in a new issue