mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +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)
|
||||
|
||||
_, 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 {
|
||||
var newsnapshot types.StateSnapshotNID
|
||||
err = tx.QueryRow(`
|
||||
|
|
Loading…
Reference in a new issue