docs(plan): 复审残留两修补——getDb 测试库优先接线、Task0.1 步骤重编号
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -56,13 +56,15 @@ Expected: 前三者各命中一条忽略规则;`.env.example` 反排除生效
|
|||||||
- PostgreSQL 镜像:postgres:16(固定 tag,不用 latest)
|
- PostgreSQL 镜像:postgres:16(固定 tag,不用 latest)
|
||||||
```
|
```
|
||||||
|
|
||||||
- [ ] **Step 3: Commit**
|
- [ ] **Step 5: Commit**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git add docs/evidence/env-baseline.md
|
git add docs/evidence/env-baseline.md
|
||||||
git commit -m "chore(evidence): 记录阶段0环境版本基线"
|
git commit -m "chore(evidence): 记录阶段0环境版本基线(含 cms 只读基线与 gitignore 验证)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
(注:Step 2/3 的记录输出并入 Step 4 的文档一并提交。)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Task 0.2: cms 数据备份(第二存储)⚠️ 需用户确认
|
### Task 0.2: cms 数据备份(第二存储)⚠️ 需用户确认
|
||||||
@@ -620,7 +622,7 @@ import { drizzle } from 'drizzle-orm/postgres-js'
|
|||||||
import postgres from 'postgres'
|
import postgres from 'postgres'
|
||||||
import * as schema from './schema.js'
|
import * as schema from './schema.js'
|
||||||
|
|
||||||
export function getDb(connectionString = process.env.DATABASE_URL!) {
|
export function getDb(connectionString = process.env.DATABASE_URL_TEST ?? process.env.DATABASE_URL!) {
|
||||||
const sql = postgres(connectionString, { max: 5 })
|
const sql = postgres(connectionString, { max: 5 })
|
||||||
return drizzle(sql, { schema })
|
return drizzle(sql, { schema })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user