Commit ea127100 authored by Matheus Miranda's avatar Matheus Miranda
Browse files

Update video file migration

parent 3da4a828
# Generated by Django 2.2.24 on 2021-07-26 17:27
# Generated by Django 2.2.24 on 2021-07-26 19:22
import courses.videos.models
from django.db import migrations, models
......@@ -16,9 +16,9 @@ class Migration(migrations.Migration):
name='VideoFile',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('name', models.CharField(max_length=255, null=True)),
('file', models.FileField(default=None, null=True, upload_to=courses.videos.models.get_upload_path)),
('video', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='file', to='courses.Video', verbose_name='file')),
('video', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='file', to='courses.Video', verbose_name='file')),
],
),
]
# Generated by Django 2.2.24 on 2021-07-26 18:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses', '0030_videofile'),
]
operations = [
migrations.AlterField(
model_name='videofile',
name='video',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='file', to='courses.Video', verbose_name='file'),
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment