refactor: 删除 users 表中未使用的字段
- 删除 report_to(上级ID)字段 - 删除 position(职位)字段 - 更新 User 模型移除相关关联和类型转换 - 更新 BusinessTripService 移除 position 返回 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
-- X-Server 删除 users 表中未使用的字段
|
||||
|
||||
USE xserver;
|
||||
|
||||
-- =====================================
|
||||
-- 删除未使用的字段
|
||||
-- =====================================
|
||||
|
||||
-- 删除上级ID字段
|
||||
ALTER TABLE users DROP COLUMN report_to;
|
||||
|
||||
-- 删除职位字段
|
||||
ALTER TABLE users DROP COLUMN position;
|
||||
|
||||
-- =====================================
|
||||
-- 验证结果
|
||||
-- =====================================
|
||||
|
||||
SELECT "=== users 表结构验证 ===" as "";
|
||||
DESCRIBE users;
|
||||
Reference in New Issue
Block a user