Files
rust-imager/migrations/005_cleanup.sql
2026-07-21 01:46:57 +08:00

7 lines
372 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 清理不再使用的索引
-- 注意:不重建 albums 表,因为 4 张子表(images/favorites/album_tags/person_albums)
-- 通过 FOREIGN KEY 引用了 albums(id),DROP TABLE 即使关闭外键检查也会失败。
-- 未使用的列(person_name_original/all_words/tags)已由应用层忽略,不影响功能。
DROP INDEX IF EXISTS idx_albums_cleaned;