[Python-modules-commits] [python-social-auth] 07/09: Fixed Django migrations
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:17:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.21
in repository python-social-auth.
commit 361f42235fe51f422af029f325d041407a16036c
Author: Clinton Blackburn <cblackburn at edx.org>
Date: Sat Aug 13 11:43:31 2016 -0400
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 ++
social/apps/django_app/default/migrations/0002_add_related_name.py | 1 +
.../apps/django_app/default/migrations/0003_alter_email_max_length.py | 2 ++
social/apps/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 9917f67..6766d92 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 @@ ASSOCIATION_HANDLE_LENGTH = getattr(
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 00595ce..8a791ea 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 @@ USER_MODEL = getattr(settings, setting_name('USER_MODEL'), None) or \
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 2f5c86e..3557d70 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 @@ EMAIL_LENGTH = getattr(settings, setting_name('EMAIL_LENGTH'), 254)
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 3a1c0b0..82648bc 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 @@ import social.apps.django_app.default.fields
class Migration(migrations.Migration):
+ replaces = [('default', '0004_auto_20160423_0400')]
dependencies = [
('social_auth', '0003_alter_email_max_length'),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list