From: Stephen Finucane Date: Tue, 13 Jun 2017 09:12:36 +0000 (+0100) Subject: migrations: Mark '0016_series_project' as non-atomic X-Git-Tag: v2.0.0-rc4~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6f29be0299cd9ace85ca3cd5c512478c02e4a33;p=thirdparty%2Fpatchwork.git 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 --- 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'), ]