Skip to content

Commit 88af124

Browse files
committed
Revert "Consolidate fiber related migrations into one"
This reverts commit e3214eb.
1 parent 15a5bc0 commit 88af124

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

wger/nutrition/migrations/0021_add_fibers_field.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@ class Migration(migrations.Migration):
1616
),
1717
migrations.AddField(
1818
model_name='nutritionplan',
19-
name='goal_fiber',
19+
name='goal_fibers',
2020
field=models.IntegerField(default=None, null=True),
2121
),
22-
migrations.RenameField(
23-
model_name='ingredient',
24-
old_name='fibres',
25-
new_name='fiber',
26-
),
2722
]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by Django 4.2.6 on 2024-05-21 19:32
2+
3+
from django.db import migrations
4+
5+
6+
class Migration(migrations.Migration):
7+
dependencies = [
8+
('nutrition', '0022_add_remote_id_increase_author_field_length'),
9+
]
10+
11+
operations = [
12+
migrations.RenameField(
13+
model_name='ingredient',
14+
old_name='fibres',
15+
new_name='fiber',
16+
),
17+
migrations.RenameField(
18+
model_name='nutritionplan',
19+
old_name='goal_fibers',
20+
new_name='goal_fiber',
21+
),
22+
]

0 commit comments

Comments
 (0)