empty the repair migration

pull/1/head
eric 2016-07-29 18:49:08 -04:00
parent 33a1482cc7
commit 0600078c27
1 changed files with 18 additions and 17 deletions

View File

@ -4,9 +4,10 @@ from __future__ import unicode_literals
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
import social #import social
# this migration repairs the state of our database so that social auth migrations can be applied # this migration repaired the state of our database so that social auth migrations can be applied
# after application, it should never do anything more
class Migration(migrations.Migration): class Migration(migrations.Migration):
@ -15,19 +16,19 @@ class Migration(migrations.Migration):
] ]
operations = [] if settings.TESTING else [ operations = [] if settings.TESTING else [
migrations.CreateModel( # migrations.CreateModel(
name='Code', # name='Code',
fields=[ # fields=[
('id', models.AutoField( # ('id', models.AutoField(
verbose_name='ID', serialize=False, auto_created=True, # verbose_name='ID', serialize=False, auto_created=True,
primary_key=True)), # primary_key=True)),
('email', models.EmailField(max_length=75)), # ('email', models.EmailField(max_length=75)),
('code', models.CharField(max_length=32, db_index=True)), # ('code', models.CharField(max_length=32, db_index=True)),
('verified', models.BooleanField(default=False)), # ('verified', models.BooleanField(default=False)),
], # ],
options={ # options={
'db_table': 'social_auth_code', # 'db_table': 'social_auth_code',
}, # },
bases=(models.Model, social.storage.django_orm.DjangoCodeMixin), # bases=(models.Model, social.storage.django_orm.DjangoCodeMixin),
), # ),
] ]