mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-16 08:43:40 +00:00
Don't delete after all, we don't need to as we move the table aside
This commit is contained in:
parent
a4e3068653
commit
2d71273fdc
1 changed files with 0 additions and 7 deletions
|
@ -138,13 +138,6 @@ func UpStateBlocksRefactor(tx *sql.Tx) error {
|
||||||
}
|
}
|
||||||
newblocks = append(newblocks, blocknid)
|
newblocks = append(newblocks, blocknid)
|
||||||
|
|
||||||
_, err = tx.Exec(`
|
|
||||||
DELETE FROM roomserver_state_block WHERE state_block_nid=$1
|
|
||||||
`, block)
|
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("tx.Exec (delete old block): %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
if snapshot != lastsnapshot {
|
if snapshot != lastsnapshot {
|
||||||
var newsnapshot types.StateSnapshotNID
|
var newsnapshot types.StateSnapshotNID
|
||||||
err = tx.QueryRow(`
|
err = tx.QueryRow(`
|
||||||
|
|
Loading…
Reference in a new issue