Don't delete after all, we don't need to as we move the table aside

This commit is contained in:
Neil Alexander 2021-04-19 13:42:12 +01:00
parent a4e3068653
commit 2d71273fdc
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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(`