diff --git a/migrations/alembic/versions/0046_add_news_articles.py b/migrations/alembic/versions/0046_add_news_articles.py index e5bb413c..8a2a51a3 100644 --- a/migrations/alembic/versions/0046_add_news_articles.py +++ b/migrations/alembic/versions/0046_add_news_articles.py @@ -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')