docs(plan): 标记 Task 1 (数据库变更) 已完成
- Step 1-4 全部完成 (commit 6fd82fb) - 添加实际执行说明:email 字段位置改为 AFTER username
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
**Files:**
|
**Files:**
|
||||||
- Modify: `sql/init-database.sql`
|
- Modify: `sql/init-database.sql`
|
||||||
|
|
||||||
- [ ] **Step 1: 在 `rui_uc_user` 表添加 email 字段**
|
- [x] **Step 1: 在 `rui_uc_user` 表添加 email 字段**
|
||||||
|
|
||||||
在 `rui_uc_user` 表的 `phone` 字段后添加 `email` 字段:
|
在 `rui_uc_user` 表的 `phone` 字段后添加 `email` 字段:
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ CREATE TABLE rui_uc_user (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户';
|
) 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` 字段:
|
修改 `rui_uc_user_detail` 表定义,删除 `email` 字段:
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ CREATE TABLE rui_uc_user_detail (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户详情';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户详情';
|
||||||
```
|
```
|
||||||
|
|
||||||
- [ ] **Step 3: 新增 `rui_uc_user_social` 表**
|
- [x] **Step 3: 新增 `rui_uc_user_social` 表**
|
||||||
|
|
||||||
在 `rui_sys_login_log` 表之前添加:
|
在 `rui_sys_login_log` 表之前添加:
|
||||||
|
|
||||||
@@ -132,7 +132,7 @@ CREATE TABLE rui_uc_user_social (
|
|||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户第三方账号关联';
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户第三方账号关联';
|
||||||
```
|
```
|
||||||
|
|
||||||
- [ ] **Step 4: Commit**
|
- [x] **Step 4: Commit**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add sql/init-database.sql
|
git add sql/init-database.sql
|
||||||
@@ -143,6 +143,8 @@ git commit -m "feat(db): 添加第三方登录支持的数据库变更
|
|||||||
- 新增 rui_uc_user_social 第三方账号关联表"
|
- 新增 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 实体类调整
|
## Task 2: rui-service-user 实体类调整
|
||||||
|
|||||||
Reference in New Issue
Block a user