+def downgrade(migrate_engine):
+ TableBase.metadata.bind = migrate_engine
+
+ posted_time_idx.drop(bind=migrate_engine)
+ thread_position_idx.drop(bind=migrate_engine)
+ Post.__table__.c.author_user_id.drop()
+ Post.__table__.c.position.drop()
+ thread_post_count_idx.drop(bind=migrate_engine)
+ Thread.__table__.c.post_count.drop()
+ Thread.__table__.c.icon.drop()