alter first, then add

This commit is contained in:
Tyrel Souza 2017-01-20 15:09:09 -05:00
parent f6f606c217
commit 76d095991c
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5

View File

@ -27,17 +27,18 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AlterField(
model_name='dbfile',
name='name',
field=models.CharField(max_length=100),
),
migrations.AddField(
model_name='dbfile',
name='filehash',
field=models.CharField(default='filehash', max_length=32, primary_key=True, serialize=False),
preserve_default=False,
),
migrations.AlterField(
model_name='dbfile',
name='name',
field=models.CharField(max_length=100),
),
migrations.RunPython(copy_filehash),
migrations.RunPython(fix_filename),
]