Files
MyAiDesk/GovAI/server/migrations/000015_platform_admin.down.sql
T
freedak f7a720204a Update: 将子项目从 submodule 转为完整内容
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用
- 添加所有子项目的完整源代码
- 保留原始 .git 为 .git.bak 备份
2026-07-04 19:20:46 +08:00

4 lines
236 B
SQL

-- 回滚:把 super_admin 恢复绑定到第一个机构(仅作占位,无法还原原始关系)
UPDATE users SET org_id = (SELECT id FROM organizations ORDER BY sort_order LIMIT 1)
WHERE role = 'super_admin' AND org_id IS NULL;