Skip to content

Commit

Permalink
Remove renaming index
Browse files Browse the repository at this point in the history
This was causing problems when the index already had the new, correct, name.
We should just give it a name ourselves and write some sql that cleans up both

See #1680
  • Loading branch information
rolandgeider committed May 25, 2024
1 parent 5c4005b commit 98be7ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion wger/nutrition/migrations/0020_full_text_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class Migration(migrations.Migration):
migrations.AddIndex(
model_name='ingredient',
index=django.contrib.postgres.indexes.GinIndex(
fields=['name'], name='nutrition_i_search__f274b7_gin'
fields=['name'],
name='nutrition_i_search__f274b7_gin'
),
),
]
5 changes: 0 additions & 5 deletions wger/nutrition/migrations/0021_add_fibers_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RenameIndex(
model_name='ingredient',
new_name='nutrition_i_name_8f538f_gin',
old_name='nutrition_i_search__f274b7_gin',
),
migrations.AddField(
model_name='nutritionplan',
name='goal_fibers',
Expand Down

0 comments on commit 98be7ea

Please sign in to comment.