From 1484b6ec1e9a6e8921cd7c0879fc2995ecdae771 Mon Sep 17 00:00:00 2001 From: Jean-Romain Garnier Date: Fri, 17 Apr 2020 17:37:47 +0200 Subject: [PATCH] Delete old migration --- users/migrations/0085_auto_20200417_0031.py | 26 --------------------- users/migrations/0085_user_email_state.py | 6 +++++ 2 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 users/migrations/0085_auto_20200417_0031.py diff --git a/users/migrations/0085_auto_20200417_0031.py b/users/migrations/0085_auto_20200417_0031.py deleted file mode 100644 index 802ea721..00000000 --- a/users/migrations/0085_auto_20200417_0031.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by Django 1.11.28 on 2020-04-16 22:31 -from __future__ import unicode_literals - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('users', '0084_auto_20191120_0159'), - ] - - def flag_verified(apps, schema_editor): - db_alias = schema_editor.connection.alias - users = apps.get_model("users", "User") - users.objects.using(db_alias).all().update(email_state=0) - - operations = [ - migrations.AddField( - model_name='user', - name='email_state', - field=models.IntegerField(choices=[(0, 'Verified'), (1, 'Unverified'), (2, 'Waiting for email confirmation')], default=2), - ), - migrations.RunPython(flag_verified), - ] diff --git a/users/migrations/0085_user_email_state.py b/users/migrations/0085_user_email_state.py index 9dfff9af..802ea721 100644 --- a/users/migrations/0085_user_email_state.py +++ b/users/migrations/0085_user_email_state.py @@ -11,10 +11,16 @@ class Migration(migrations.Migration): ('users', '0084_auto_20191120_0159'), ] + def flag_verified(apps, schema_editor): + db_alias = schema_editor.connection.alias + users = apps.get_model("users", "User") + users.objects.using(db_alias).all().update(email_state=0) + operations = [ migrations.AddField( model_name='user', name='email_state', field=models.IntegerField(choices=[(0, 'Verified'), (1, 'Unverified'), (2, 'Waiting for email confirmation')], default=2), ), + migrations.RunPython(flag_verified), ]