-- 为 all-chapters 接口加速:sort_order + id 排序索引 -- 执行:node .cursor/scripts/db-exec/run.js -f soul-api/scripts/add-chapters-index-for-all-chapters.sql -- 若索引已存在会报错,可忽略 CREATE INDEX idx_chapters_sort_id ON chapters(sort_order, id);