summaryrefslogtreecommitdiff
path: root/patchwork/migrations
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-06-13 10:12:36 +0100
committerStephen Finucane <stephen@that.guru>2017-06-14 09:34:26 +0100
commitb6f29be0299cd9ace85ca3cd5c512478c02e4a33 (patch)
tree26a3688184f964a80429ebd733ce537f00c23876 /patchwork/migrations
parent92a2a0a105471108fc22d7a21376692964e91edd (diff)
downloadpatchwork-b6f29be0299cd9ace85ca3cd5c512478c02e4a33.tar
patchwork-b6f29be0299cd9ace85ca3cd5c512478c02e4a33.tar.gz
migrations: Mark '0016_series_project' as non-atomic
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@that.guru> Acked-by: Aaron Conole <aconole@bytheb.org> Closes-bug: #104
Diffstat (limited to 'patchwork/migrations')
-rw-r--r--patchwork/migrations/0016_series_project.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/patchwork/migrations/0016_series_project.py b/patchwork/migrations/0016_series_project.py
index c4874f9..7aea132 100644
--- a/patchwork/migrations/0016_series_project.py
+++ b/patchwork/migrations/0016_series_project.py
@@ -32,6 +32,12 @@ def reverse(apps, schema_editor):
class Migration(migrations.Migration):
+ # 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 = [
('patchwork', '0015_add_series_models'),
]