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>
]
operations = [
- migrations.RunPython(copy_comment_field, uncopy_comment_field),
- migrations.RunPython(remove_duplicate_comments, recreate_comments),
+ migrations.RunPython(copy_comment_field, uncopy_comment_field,
+ atomic=False),
+ migrations.RunPython(remove_duplicate_comments, recreate_comments,
+ atomic=False),
]
name='project',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='series', to='patchwork.Project'),
),
- migrations.RunPython(forward, reverse),
+ migrations.RunPython(forward, reverse, atomic=False),
migrations.AlterField(
model_name='seriesreference',
name='msgid',