Skip to content

Commit

Permalink
Fix migration 0013 IrreversibleError
Browse files Browse the repository at this point in the history
The RunPython migration action was missing a reverse_code function.
This was set to RunPython.noop, as an index drop can't and shouldn't be reversed.
  • Loading branch information
Lukasdoe authored and jheld committed Jul 25, 2022
1 parent b66fbd5 commit ea862b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyaudit/migrations/0013_auto_20190723_0126.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunPython(drop_index_if_exists),
migrations.RunPython(drop_index_if_exists, migrations.RunPython.noop),
migrations.AlterField(
model_name='requestevent',
name='url',
Expand Down

0 comments on commit ea862b5

Please sign in to comment.