重构模型平台前后端并移除Redis依赖
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Migrations
|
||||
|
||||
MySQL 8 Alembic 迁移目录。
|
||||
|
||||
当前链路:
|
||||
|
||||
```text
|
||||
20260724_0001 完整业务 Schema 基线
|
||||
20260728_0002 Demo 用户、角色、Workspace 数据
|
||||
20260728_0003 调度稳定版本可见性字段
|
||||
20260730_0004 编辑租约字段 redis_lock_key -> lock_key 兼容迁移
|
||||
```
|
||||
|
||||
Docker Compose 中的 `migrate` 一次性容器会在 Backend 和 Runtime 启动前执行:
|
||||
|
||||
```bash
|
||||
alembic upgrade head
|
||||
```
|
||||
|
||||
本地执行:
|
||||
|
||||
```bash
|
||||
export DATABASE_URL='mysql+asyncmy://user:password@127.0.0.1:3308/model_platform?charset=utf8mb4'
|
||||
uv run --package backend alembic current
|
||||
uv run --package backend alembic upgrade head
|
||||
```
|
||||
|
||||
已发布的旧 revision 不应再修改;后续表结构调整必须新增 revision。
|
||||
Reference in New Issue
Block a user