Files
rust-imager/migrations/005_cleanup.sql
2026-07-20 23:50:07 +08:00

12 lines
423 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.

-- 移除不再使用的扩展列(数据已迁移到 search.db)
-- SQLite 3.35.0+ 支持 ALTER TABLE DROP COLUMN
-- 先删除引用这些列的索引
DROP INDEX IF EXISTS idx_albums_cleaned;
ALTER TABLE albums DROP COLUMN tags;
ALTER TABLE albums DROP COLUMN all_words;
ALTER TABLE albums DROP COLUMN person_name_original;
ALTER TABLE albums DROP COLUMN person_name_cleaned;
ALTER TABLE albums DROP COLUMN raw_title;