From 3c618b57bb5462bd66545b115829760b149af638 Mon Sep 17 00:00:00 2001 From: pigeon Date: Sun, 7 Jun 2026 15:31:52 +0800 Subject: [PATCH] =?UTF-8?q?docs(plan):=20=E6=A0=87=E8=AE=B0=20Task=201=20(?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=8F=98=E6=9B=B4)=20=E5=B7=B2?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Step 1-4 全部完成 (commit 6fd82fb) - 添加实际执行说明:email 字段位置改为 AFTER username --- .../plans/2026-06-07-multi-login-social-login-plan.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md index 69b54c8..2f80fff 100644 --- a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md +++ b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md @@ -47,7 +47,7 @@ **Files:** - Modify: `sql/init-database.sql` -- [ ] **Step 1: 在 `rui_uc_user` 表添加 email 字段** +- [x] **Step 1: 在 `rui_uc_user` 表添加 email 字段** 在 `rui_uc_user` 表的 `phone` 字段后添加 `email` 字段: @@ -76,7 +76,7 @@ CREATE TABLE rui_uc_user ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户'; ``` -- [ ] **Step 2: 从 `rui_uc_user_detail` 表删除 email 字段** +- [x] **Step 2: 从 `rui_uc_user_detail` 表删除 email 字段** 修改 `rui_uc_user_detail` 表定义,删除 `email` 字段: @@ -105,7 +105,7 @@ CREATE TABLE rui_uc_user_detail ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户详情'; ``` -- [ ] **Step 3: 新增 `rui_uc_user_social` 表** +- [x] **Step 3: 新增 `rui_uc_user_social` 表** 在 `rui_sys_login_log` 表之前添加: @@ -132,7 +132,7 @@ CREATE TABLE rui_uc_user_social ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户第三方账号关联'; ``` -- [ ] **Step 4: Commit** +- [x] **Step 4: Commit** ```bash git add sql/init-database.sql @@ -143,6 +143,8 @@ git commit -m "feat(db): 添加第三方登录支持的数据库变更 - 新增 rui_uc_user_social 第三方账号关联表" ``` +> **实际执行说明 (2026-06-07)**:email 字段位置在 init-database.sql 中改为 `AFTER username`(plan 写的是 `AFTER phone`,但当前 state rui_uc_user 表无 phone 字段;与 `sql/upgrade-v2.x-add-phone-to-user.sql` 的 `AFTER username` 惯例保持一致)。另有 init-database.sql 未反映 phone 迁移的 gap(见最终报告)。 + --- ## Task 2: rui-service-user 实体类调整