0005_auto_20190630_0937.py 1.72 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
# Generated by Django 2.1.7 on 2019-06-30 07:37

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


class Migration(migrations.Migration):

    dependencies = [("backend_app", "0004_auto_20190629_1941")]

    operations = [
        migrations.CreateModel(
            name="UnivMajorMinors",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("major", models.CharField(blank=True, max_length=20, null=True)),
                ("minors", backend_app.fields.JSONField(default=list)),
                (
                    "university",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to="backend_app.University",
                    ),
                ),
            ],
        ),
        migrations.AddField(
            model_name="exchange",
            name="student_major_and_semester",
            field=models.CharField(blank=True, max_length=20),
        ),
        migrations.AddField(
            model_name="exchange",
            name="student_semester",
            field=models.IntegerField(null=True),
        ),
        migrations.AlterField(
            model_name="exchange",
            name="student_major",
            field=models.CharField(blank=True, max_length=20, null=True),
        ),
        migrations.AlterUniqueTogether(
            name="univmajorminors", unique_together={("university", "major")}
        ),
    ]