Skip to content

Commit

Permalink
Remove created indices on migration downgrade
Browse files Browse the repository at this point in the history
We don't expect to run this on production but it helps to bring the local base up to date if
switching betwtween branches and ending up on a inconsistent state.
  • Loading branch information
marcospri committed Jan 14, 2025
1 parent dac0c3f commit 7e19fcb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ def upgrade():


def downgrade():
op.drop_index(op.f("ix__user_group_updated"), table_name="user_group")
op.drop_index(op.f("ix__user_group_created"), table_name="user_group")
op.drop_column("user_group", "updated")
op.drop_column("user_group", "created")

0 comments on commit 7e19fcb

Please sign in to comment.