This commit is contained in:
Alex-larget
2026-03-24 15:44:08 +08:00
parent 346e8ab057
commit 28ad08da84
62 changed files with 814 additions and 840 deletions

View File

@@ -1,4 +0,0 @@
-- 为 chapters 表添加 preview_percent 列章节级预览比例NULL 表示使用全局 unpaid_preview_percent
-- 执行: mysql -u user -p db < soul-api/scripts/add-chapters-preview-percent.sql
ALTER TABLE chapters ADD COLUMN IF NOT EXISTS preview_percent INT NULL COMMENT '章节级预览比例(%)NULL 表示使用全局设置' AFTER hot_score;

View File

@@ -1,3 +0,0 @@
-- ckb_lead_records 增加 ckb_error 字段,存客宝请求失败时写入错误信息
-- 执行: node .cursor/scripts/db-exec/run.js -f soul-api/scripts/add_ckb_lead_error.sql
ALTER TABLE ckb_lead_records ADD COLUMN ckb_error VARCHAR(500) DEFAULT '' COMMENT '存客宝请求失败时的错误信息';

View File

@@ -1,3 +0,0 @@
-- 角标单独字段chapters 表新增 part_label
-- 执行: node .cursor/scripts/db-exec/run.js -f soul-api/scripts/add_part_label.sql
ALTER TABLE chapters ADD COLUMN part_label VARCHAR(20) DEFAULT '' COMMENT '篇角标,如 一、二、派';

View File

@@ -1,6 +0,0 @@
-- 链接人与事 - persons 表新增 avatar 字段
-- 有 user_id 时头像从 users 表取;无 user_id 时用本字段(管理端可编辑)
-- 执行mysql -u user -p db < soul-api/scripts/add_persons_avatar.sql
-- 若已存在则忽略错误
ALTER TABLE persons ADD COLUMN avatar VARCHAR(512) DEFAULT '' COMMENT '头像URL无user_id时使用';

View File

@@ -1,3 +0,0 @@
-- 文章级未解锁预览百分比chapters.preview_percent
-- 空或0则使用全局 unpaid_preview_percent
ALTER TABLE chapters ADD COLUMN preview_percent INT DEFAULT NULL COMMENT '未解锁显示前N%,空则用全局';