From 361f42235fe51f422af029f325d041407a16036c Mon Sep 17 00:00:00 2001 From: Clinton Blackburn Date: Sat, 13 Aug 2016 11:43:31 -0400 Subject: [PATCH] Fixed Django migrations The app rename in #916 breaks migrations for previously-setup systems. This commit informs Django that the migrations under the new app name replace the migrations under the old app name. Fixes #991 --- social/apps/django_app/default/migrations/0001_initial.py | 2 ++ .../apps/django_app/default/migrations/0002_add_related_name.py | 1 + .../default/migrations/0003_alter_email_max_length.py | 2 ++ .../django_app/default/migrations/0004_auto_20160423_0400.py | 1 + 4 files changed, 6 insertions(+) diff --git a/social/apps/django_app/default/migrations/0001_initial.py b/social/apps/django_app/default/migrations/0001_initial.py index 9917f67c..6766d928 100644 --- a/social/apps/django_app/default/migrations/0001_initial.py +++ b/social/apps/django_app/default/migrations/0001_initial.py @@ -23,6 +23,8 @@ class Migration(migrations.Migration): + replaces = [('default', '0001_initial')] + dependencies = [ migrations.swappable_dependency(USER_MODEL), ] diff --git a/social/apps/django_app/default/migrations/0002_add_related_name.py b/social/apps/django_app/default/migrations/0002_add_related_name.py index 00595cec..8a791eae 100644 --- a/social/apps/django_app/default/migrations/0002_add_related_name.py +++ b/social/apps/django_app/default/migrations/0002_add_related_name.py @@ -12,6 +12,7 @@ class Migration(migrations.Migration): + replaces = [('default', '0002_add_related_name')] dependencies = [ ('social_auth', '0001_initial'), diff --git a/social/apps/django_app/default/migrations/0003_alter_email_max_length.py b/social/apps/django_app/default/migrations/0003_alter_email_max_length.py index 2f5c86ea..3557d707 100644 --- a/social/apps/django_app/default/migrations/0003_alter_email_max_length.py +++ b/social/apps/django_app/default/migrations/0003_alter_email_max_length.py @@ -10,6 +10,8 @@ class Migration(migrations.Migration): + replaces = [('default', '0003_alter_email_max_length')] + dependencies = [ ('social_auth', '0002_add_related_name'), ] diff --git a/social/apps/django_app/default/migrations/0004_auto_20160423_0400.py b/social/apps/django_app/default/migrations/0004_auto_20160423_0400.py index 3a1c0b08..82648bcb 100644 --- a/social/apps/django_app/default/migrations/0004_auto_20160423_0400.py +++ b/social/apps/django_app/default/migrations/0004_auto_20160423_0400.py @@ -6,6 +6,7 @@ class Migration(migrations.Migration): + replaces = [('default', '0004_auto_20160423_0400')] dependencies = [ ('social_auth', '0003_alter_email_max_length'),