cookbook/recipes/migrations/0003_auto_20191107_1728.py

28 lines
822 B
Python
Raw Permalink Normal View History

2019-11-08 16:46:41 +01:00
# Generated by Django 2.2.6 on 2019-11-07 16:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('recipes', '0002_recipe_protocol'),
]
operations = [
migrations.RemoveField(
model_name='recipe',
name='protocol',
),
migrations.CreateModel(
name='Step',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('step', models.PositiveSmallIntegerField()),
('protocol', models.TextField(default='')),
('recipe', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='recipes.Recipe')),
],
),
]