diff --git a/docs/sql/create_community_post_categories.sql b/docs/sql/create_community_post_categories.sql index 130a1a34..adea8816 100644 --- a/docs/sql/create_community_post_categories.sql +++ b/docs/sql/create_community_post_categories.sql @@ -124,12 +124,12 @@ INNER JOIN ( ROW_NUMBER() OVER ( PARTITION BY post_tag.`post_id` ORDER BY tag.`sort` DESC, post_tag.`id` ASC - ) AS row_number + ) AS `post_rank` FROM `la_community_post_tag` post_tag INNER JOIN `la_community_tag` tag ON tag.`id` = post_tag.`tag_id` INNER JOIN `la_community_post_category` category ON category.`id` = post_tag.`tag_id` ) ranked - WHERE ranked.row_number = 1 + WHERE ranked.`post_rank` = 1 ) selected_category ON selected_category.`post_id` = post.`id` SET post.`category_id` = selected_category.`category_id` WHERE post.`category_id` = 0; diff --git a/docs/superpowers/plans/2026-08-02-community-post-channels-and-categories.md b/docs/superpowers/plans/2026-08-02-community-post-channels-and-categories.md index fa941bb5..72794b00 100644 --- a/docs/superpowers/plans/2026-08-02-community-post-channels-and-categories.md +++ b/docs/superpowers/plans/2026-08-02-community-post-channels-and-categories.md @@ -151,7 +151,7 @@ communityPostSetCategory({ id, category_id }) 检查管理端请求失败回滚、权限标识、选择器数值类型、分页筛选参数和用户端频道切换请求,确认不存在客户端分页内伪排序或未使用导入。 -- [ ] **Step 3: 提交源码** +- [x] **Step 3: 提交源码** 只暂存本任务文件,排除工作区原有 `AGENTS.md` 和共享文档混合改动,提交信息: @@ -159,7 +159,7 @@ communityPostSetCategory({ id, category_id }) feat: add community post categories and channels ``` -- [ ] **Step 4: 同步测试服并应用数据库初始化** +- [x] **Step 4: 同步测试服并应用数据库初始化** 先执行项目规定部署命令: