]> git.ipfire.org Git - thirdparty/patchwork.git/commit
migrations: Mark 'RunPython' blocks as non-atomic
authorStephen Finucane <stephen@that.guru>
Fri, 19 May 2017 14:53:18 +0000 (15:53 +0100)
committerStephen Finucane <stephen@that.guru>
Sun, 3 Dec 2017 20:54:35 +0000 (20:54 +0000)
commit4baf00b69be1b1160dff2f18a8b7e0764b1d2613
tree1200ea9e783e206f0959c05bed6c6acee1fc4e07
parent636276eba009ff524ea1096d730a5a0d21859a8e
migrations: Mark 'RunPython' blocks as non-atomic

This appears to be required to run migrations on MySQL backend. Without
this, the following error messages are propagated:

    Executing DDL statements while in a transaction on databases that
    can't perform a rollback is prohibited.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Tested-by: Daniel Axtens <dja@axtens.net>
patchwork/migrations/0007_move_comment_content_to_patch_content.py
patchwork/migrations/0016_series_project.py