summary refs log tree commit diff
path: root/changelog.d/14926.bugfix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make sqlite database migrations transactional again, part two (#14926)Sean Quah2023-01-311-0/+1
#14910 fixed the regression introduced by #13873 where sqlite database migrations would no longer run inside a transaction. However, it committed the transaction before Synapse updated its bookkeeping of which migrations have been run, which means that migrations may be run again after they have completed successfully. Leave the transaction open at the end of `executescript`, to restore the old, correct behaviour. Also make the PostgreSQL behaviour consistent with SQLite. Fixes #14909. Signed-off-by: Sean Quah <seanq@matrix.org>