forked from 0x2620/pandora
archive: fix migrations for upload_to function renamings
9c75526
renamed these functions. The function doesn't affect the DB
schema so it should be safe to just modify the migraiton.
This commit is contained in:
parent
e29ea230fb
commit
39b9b48be2
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class Migration(migrations.Migration):
|
||||||
('is_audio', models.BooleanField(default=False)),
|
('is_audio', models.BooleanField(default=False)),
|
||||||
('is_video', models.BooleanField(default=False)),
|
('is_video', models.BooleanField(default=False)),
|
||||||
('is_subtitle', models.BooleanField(default=False)),
|
('is_subtitle', models.BooleanField(default=False)),
|
||||||
('data', models.FileField(blank=True, null=True, upload_to=archive.models.get_data_path)),
|
('data', models.FileField(blank=True, null=True, upload_to=archive.models.data_path)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
|
@ -93,7 +93,7 @@ class Migration(migrations.Migration):
|
||||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
('resolution', models.IntegerField(default=96)),
|
('resolution', models.IntegerField(default=96)),
|
||||||
('format', models.CharField(default=b'webm', max_length=255)),
|
('format', models.CharField(default=b'webm', max_length=255)),
|
||||||
('media', models.FileField(blank=True, default=None, upload_to=archive.models.get_path)),
|
('media', models.FileField(blank=True, default=None, upload_to=archive.models.stream_path)),
|
||||||
('available', models.BooleanField(default=False)),
|
('available', models.BooleanField(default=False)),
|
||||||
('oshash', models.CharField(db_index=True, max_length=16, null=True)),
|
('oshash', models.CharField(db_index=True, max_length=16, null=True)),
|
||||||
('info', oxdjango.fields.DictField(default={})),
|
('info', oxdjango.fields.DictField(default={})),
|
||||||
|
|
Loading…
Reference in a new issue