# Generated by Django 3.0.14 on 2022-04-18 11:59

from django.db import migrations


def remove_course_module_scorms(apps, schema_editor):
    ScormResourceStudentAttempt = apps.get_model('scorm', 'ScormResourceStudentAttempt')
    ScormStudentAttempt = apps.get_model('scorm', 'ScormStudentAttempt')
    ScormResource = apps.get_model('scorm', 'ScormResource')
    Scorm = apps.get_model('scorm', 'Scorm')

    ScormResourceStudentAttempt.objects.all().delete()
    ScormStudentAttempt.objects.all().delete()
    ScormResource.objects.all().delete()
    Scorm.objects.all().delete()


class Migration(migrations.Migration):

    dependencies = [
        ('scorm', '0008_scorm_max_attempts'),
    ]

    operations = [
        migrations.RunPython(remove_course_module_scorms, migrations.RunPython.noop),
    ]

