redo migrations

This commit is contained in:
Tyrel Souza 2017-01-20 15:22:17 -05:00
parent 1cb4268d5f
commit b31357e34f
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
2 changed files with 3 additions and 13 deletions

View File

@ -17,8 +17,10 @@ class Migration(migrations.Migration):
name='DBFile', name='DBFile',
fields=[ fields=[
('name', models.CharField(max_length=100, ('name', models.CharField(max_length=100,
primary_key=True,
serialize=False)), serialize=False)),
('filehash', models.CharField(max_length=32,
primary_key=True,
serialize=False)),
('content_type', models.CharField(max_length=100)), ('content_type', models.CharField(max_length=100)),
('b64', models.TextField()), ('b64', models.TextField()),
], ],

View File

@ -27,18 +27,6 @@ class Migration(migrations.Migration):
] ]
operations = [ 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.RunPython(copy_filehash), migrations.RunPython(copy_filehash),
migrations.RunPython(fix_filename), migrations.RunPython(fix_filename),
] ]