steeldonutcollection/backend/migrations/0004_remove_playlist_videos_playlistvideo.py

28 lines
894 B
Python
Raw Normal View History

2022-05-05 15:40:57 +00:00
# Generated by Django 4.0.4 on 2022-05-05 14:12
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('backend', '0003_video_published'),
]
operations = [
migrations.RemoveField(
model_name='playlist',
name='videos',
),
migrations.CreateModel(
name='PlaylistVideo',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('order', models.PositiveIntegerField(default=0)),
('playlist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='backend.playlist')),
('video', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='backend.video')),
],
),
]