redo migrations
This commit is contained in:
parent
1cb4268d5f
commit
b31357e34f
@ -17,6 +17,8 @@ class Migration(migrations.Migration):
|
||||
name='DBFile',
|
||||
fields=[
|
||||
('name', models.CharField(max_length=100,
|
||||
serialize=False)),
|
||||
('filehash', models.CharField(max_length=32,
|
||||
primary_key=True,
|
||||
serialize=False)),
|
||||
('content_type', models.CharField(max_length=100)),
|
||||
|
@ -27,18 +27,6 @@ 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.RunPython(copy_filehash),
|
||||
migrations.RunPython(fix_filename),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user