From b6f29be0299cd9ace85ca3cd5c512478c02e4a33 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Tue, 13 Jun 2017 10:12:36 +0100 Subject: [PATCH] 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 Acked-by: Aaron Conole Closes-bug: #104 --- 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 c4874f97..7aea1325 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'), ] -- 2.47.3