Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# V003_browser_profile_group.sql
|
||||
|
||||
用途:
|
||||
|
||||
- 新增 `fp_profile_group` 分组表
|
||||
- 给 `fp_profile` 增加 `group_id`
|
||||
- 为历史会员/环境初始化 `默认分组`
|
||||
- 把历史 `fp_profile.group_name` 迁移成真正的分组数据
|
||||
- 回填 `fp_profile.group_id`
|
||||
|
||||
执行顺序:
|
||||
|
||||
1. 先执行 `V001_browser_member_user.sql`
|
||||
2. 如果已经执行过 `V001`,直接执行 `V003_browser_profile_group.sql`
|
||||
|
||||
执行后预期:
|
||||
|
||||
- 每个用户至少有一个默认分组:`默认分组`
|
||||
- 历史环境里原本填写过的 `group_name` 会自动生成对应分组
|
||||
- 未分组环境会自动归入默认分组
|
||||
|
||||
兼容性:
|
||||
|
||||
- 已改为兼容不支持 `ADD COLUMN IF NOT EXISTS` 的 MySQL 版本
|
||||
Reference in New Issue
Block a user