mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-07 19:40:49 +08:00
refactor(install): 种子退役,migrate:run 一条命令完成建表与初始数据
新增 InitDataAlignService 六域对齐(超管/角色/权限节点/配置/快捷入口/商城演示)与 20260909130000 迁移;SystemAdmin 快照以字面量哈希入库;删除种子三件与安装锁依赖,seeds 目录留 .gitkeep;README/tests/规则等 11 处说明同步。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -6,10 +6,9 @@
|
||||
# 2. 派生测试库名 = {env.database} + '_test'(如 ulthon_admin -> ulthon_admin_test)
|
||||
# 3. 在同一 MySQL 实例上 CREATE DATABASE IF NOT EXISTS(无需专用 Docker 容器)
|
||||
# 4. config 级覆盖 connections.main 指向测试库
|
||||
# 5. php think migrate:run 建系统/框架表(database/migrations/)
|
||||
# 5. php think migrate:run 建系统/框架表 + 全部初始数据(database/migrations/)
|
||||
# 6. php think scheme:sync 建业务表(app/admin/scheme/)
|
||||
# 7. php think seed:run 插参考数据(database/seeds/)
|
||||
# 8. 查 information_schema 验证表已落到测试库
|
||||
# 7. 查 information_schema 验证表已落到测试库
|
||||
#
|
||||
# 完全参数化:不硬编码 host/port/credentials。MySQL 实例 = .env 指向的那个。
|
||||
# 详见 tests/README.md。
|
||||
|
||||
Reference in New Issue
Block a user