chore: 接入 Prisma 迁移部署基线
This commit is contained in:
@@ -50,3 +50,9 @@ pnpm lint
|
||||
pnpm test
|
||||
pnpm build
|
||||
```
|
||||
|
||||
## 部署迁移
|
||||
|
||||
- Jenkins API 部署脚本的仓库版本在 `deploy/deploy-devops-platform-api-from-jenkins.sh`。
|
||||
- 脚本会在切换 `/srv/www/devops-platform-api` 前运行 `pnpm prisma migrate deploy`,迁移失败时不会替换旧服务目录。
|
||||
- 生产库早期通过手工 SQL 初始化,首次启用迁移时脚本会在确认 12 张核心表都存在后把基线迁移标记为 applied。
|
||||
|
||||
Reference in New Issue
Block a user