MatrixSynapse/synapse
Sean Quah 6d14fdc271
Make sqlite database migrations transactional again, part two (#14926)
#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>
2023-01-31 11:03:55 +00:00
..
_scripts
api
app
appservice
config Prefer `type(x) is int` to `isinstance(x, int)` (#14945) 2023-01-31 10:33:07 +00:00
crypto
events Reject boolean power levels (#14944) 2023-01-31 10:57:02 +00:00
federation Reject boolean power levels (#14944) 2023-01-31 10:57:02 +00:00
handlers Prefer `type(x) is int` to `isinstance(x, int)` (#14945) 2023-01-31 10:33:07 +00:00
http
logging
metrics
module_api
push
replication
res
rest Prefer `type(x) is int` to `isinstance(x, int)` (#14945) 2023-01-31 10:33:07 +00:00
server_notices
spam_checker_api
state
static
storage Make sqlite database migrations transactional again, part two (#14926) 2023-01-31 11:03:55 +00:00
streams
types
util
__init__.py
event_auth.py Reject boolean power levels (#14944) 2023-01-31 10:57:02 +00:00
notifier.py
py.typed
server.py
visibility.py