From 515919cd2059c51c52c75dc712e398fd58af9b8a Mon Sep 17 00:00:00 2001 From: Jimin Ha Date: Wed, 2 Mar 2022 05:32:34 +0000 Subject: [PATCH] migrate model change --- .../migrations/0013_auto_20220302_1413.py | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 backend/contest/migrations/0013_auto_20220302_1413.py diff --git a/backend/contest/migrations/0013_auto_20220302_1413.py b/backend/contest/migrations/0013_auto_20220302_1413.py new file mode 100644 index 000000000..5727aedff --- /dev/null +++ b/backend/contest/migrations/0013_auto_20220302_1413.py @@ -0,0 +1,49 @@ +# Generated by Django 3.2.12 on 2022-03-02 05:13 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('contest', '0012_rename_total_score_acmcontestrank_total_penalty'), + ] + + operations = [ + migrations.AddField( + model_name='contest', + name='constraints', + field=models.JSONField(default=list), + ), + migrations.AddField( + model_name='contest', + name='requirements', + field=models.JSONField(default=list), + ), + migrations.AddField( + model_name='contest', + name='scoring', + field=models.TextField(default='ACM-ICPC style'), + ), + migrations.CreateModel( + name='ContestPrize', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('color', models.TextField()), + ('name', models.TextField()), + ('reward', models.TextField()), + ('contest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contest.contest')), + ], + ), + migrations.AddField( + model_name='acmcontestrank', + name='prize', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contest.contestprize'), + ), + migrations.AddField( + model_name='oicontestrank', + name='prize', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contest.contestprize'), + ), + ]