feat(migrations): add cleanup migration for duplicate indexes

This commit is contained in:
xfy 2026-06-17 12:00:39 +08:00
parent 08895f504e
commit 48888a9886

View File

@ -0,0 +1,6 @@
-- 清理早期迁移重复创建的索引
-- 这些索引在新数据库中已不会再被创建
DROP INDEX IF EXISTS idx_posts_slug;
DROP INDEX IF EXISTS idx_tags_name;
DROP INDEX IF EXISTS idx_post_tags_tag_id;