migration various leftover things after PR's
This commit is contained in:
parent
94e357f4f6
commit
71ac73ff2a
40
cookbook/migrations/0151_auto_20210915_1037.py
Normal file
40
cookbook/migrations/0151_auto_20210915_1037.py
Normal file
@ -0,0 +1,40 @@
|
||||
# Generated by Django 3.2.7 on 2021-09-15 08:37
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cookbook', '0150_food_to_tree'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveIndex(
|
||||
model_name='cooklog',
|
||||
name='cookbook_co_id_37485a_idx',
|
||||
),
|
||||
migrations.RemoveIndex(
|
||||
model_name='viewlog',
|
||||
name='cookbook_vi_recipe__5cd178_idx',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='ingredient',
|
||||
name='food',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='cookbook.food'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='userpreference',
|
||||
name='search_style',
|
||||
field=models.CharField(choices=[('SMALL', 'Small'), ('LARGE', 'Large'), ('NEW', 'New')], default='NEW', max_length=64),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='cooklog',
|
||||
index=models.Index(fields=['id', 'recipe', '-created_at', 'rating', 'created_by'], name='cookbook_co_id_93d841_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='viewlog',
|
||||
index=models.Index(fields=['recipe', '-created_at', 'created_by'], name='cookbook_vi_recipe__1b051f_idx'),
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user