# Generated by Django 4.1.4 on 2024-02-17 23:21

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('longs', '0018_alter_exam_exam_questions'),
    ]

    operations = [
        migrations.CreateModel(
            name='SeriesDetail',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sort_order', models.IntegerField(default=1000)),
                ('long', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='longs.long')),
                ('longseries', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='longs.longseries')),
            ],
            options={
                'ordering': ('sort_order',),
            },
        ),
        migrations.RunSQL(
            """INSERT INTO longs_seriesdetail
            SELECT * FROM longs_long_series;"""
        ),
    ]
