<!-- migrator:start --> *This issue was originally created by [**@<!-- -->hughns**](https://github.com/hughns) at <https://github.com/matrix-org/matrix-authentication-service/issues/2268>.* <!-- migrator:end --> Currently we have a hangover from an incremental migration mode that was never completed. Instead we should be doing a single transaction and only committing it on success.