This commit is contained in:
Hubert Jankowski 2021-12-12 11:36:04 +01:00
parent 7c18f0920a
commit 9fd11ead35
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Generated by Django 3.2.9 on 2021-12-11 22:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default='', max_length=200)),
],
),
]

View File

@ -0,0 +1,20 @@
# Generated by Django 3.2.9 on 2021-12-11 22:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
('trials', '0004_remove_test_category'),
]
operations = [
migrations.AddField(
model_name='test',
name='category',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='tests', to='categories.category'),
),
]