Skip to content

Commit

Permalink
add: model migration
Browse files Browse the repository at this point in the history
  • Loading branch information
st42597 authored and jimin9038 committed Mar 23, 2022
1 parent 51f9849 commit 067f949
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions backend/temperature/migrations/0007_auto_20220323_1806.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Generated by Django 3.2.10 on 2022-03-23 09:06

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


class Migration(migrations.Migration):

dependencies = [
('problem', '0015_auto_20211030_1535'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('temperature', '0006_alter_solvedproblem_id'),
]

operations = [
migrations.AddField(
model_name='solvedproblem',
name='problem',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='problem.problem'),
),
migrations.AddField(
model_name='solvedproblem',
name='user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AddField(
model_name='temperature',
name='user',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='solvedproblem',
name='id',
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
),
migrations.AlterUniqueTogether(
name='solvedproblem',
unique_together={('user', 'problem')},
),
migrations.AlterUniqueTogether(
name='temperature',
unique_together={('user', 'date')},
),
migrations.RemoveField(
model_name='solvedproblem',
name='_id',
),
migrations.RemoveField(
model_name='solvedproblem',
name='user_id',
),
migrations.RemoveField(
model_name='temperature',
name='user_id',
),
]

0 comments on commit 067f949

Please sign in to comment.