[PATCH] migrations: Mark '0016_series_project' as non-atomic
stephen at that.guru
Tue Jun 13 19:15:47 AEST 2017
This should resolve migration issues arising from PostgreSQL's inability
to mix data and schema migrations in a single transaction.
Signed-off-by: Stephen Finucane <stephen at that.guru>
Cc: Aaron Conole <aconole at bytheb.org>
Cc: Daniel Axtens <dja at axtens.net>
patchwork/migrations/0016_series_project.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/patchwork/migrations/0016_series_project.py b/patchwork/migrations/0016_series_project.py
index c4874f9..7aea132 100644
@@ -32,6 +32,12 @@ def reverse(apps, schema_editor):
+ # This is necessary due to a mistake made when writing the migration.
+ # PostgreSQL does not allow mixing of schema and data migrations within the
+ # same transaction. Disabling transactions ensures this doesn't happen.
+ # Refer to bug #104 for more information.
+ atomic = False
dependencies = [
More information about the Patchwork