6 lines
294 B
SQL
6 lines
294 B
SQL
-- 为 chapters 表添加 sort_order 列(支持拖拽排序)
|
||
-- 执行:cd 项目根目录 && node .cursor/scripts/db-exec/run.js -f soul-api/scripts/add-sort-order-to-chapters.sql
|
||
-- 若 sort_order 已存在会报错,可忽略
|
||
|
||
ALTER TABLE chapters ADD COLUMN sort_order INT DEFAULT 0;
|