fix: simplify 0046 migration downgrade to just drop_table

drop_table automatically removes all indexes, fixing downgrade failure
when indexes were added after initial migration was applied
This commit is contained in:
Fringg
2026-03-23 11:29:31 +03:00
parent 2b91808b0c
commit 015c2da297
@@ -62,8 +62,5 @@ def upgrade() -> None:
def downgrade() -> None:
op.drop_index('ix_news_articles_created_at', table_name='news_articles')
op.drop_index('ix_news_articles_published_category', table_name='news_articles')
op.drop_index('ix_news_articles_published_at_published', table_name='news_articles')
op.drop_index('ix_news_articles_slug', table_name='news_articles')
# drop_table cascades to all indexes on the table automatically
op.drop_table('news_articles')