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

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


class Migration(migrations.Migration):

    dependencies = [
        ('longs', '0016_rename_exam_collection_exam_examcollection'),
    ]

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