diff --git a/CHANGELOG.md b/CHANGELOG.md index 5eaf74a..ef08b91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ 本文件的格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/), 并且本项目遵循 [语义化版本 (Semantic Versioning)](https://semver.org/lang/zh-CN/spec/v2.0.0.html)。 +## [1.2.7] - 2026-01-15 + +### 修复 +- **数据库迁移**:修复了在 K8s 环境下执行 `db:migrate:deploy` 时由于相对路径解析失败导致的迁移中断问题。现在使用绝对路径进行稳健解析,并增加了调试日志。 + ## [1.2.6] - 2026-01-15 ### 变更 diff --git a/apps/server/src/db/migrate.ts b/apps/server/src/db/migrate.ts index 9132f85..06a5ffa 100644 --- a/apps/server/src/db/migrate.ts +++ b/apps/server/src/db/migrate.ts @@ -1,10 +1,10 @@ +import fs from "node:fs"; +import path from "node:path"; +import { fileURLToPath } from "node:url"; import { eq } from "drizzle-orm"; import { drizzle } from "drizzle-orm/postgres-js"; import { migrate } from "drizzle-orm/postgres-js/migrator"; import postgres from "postgres"; -import path from "node:path"; -import fs from "node:fs"; -import { fileURLToPath } from "node:url"; import * as schema from "./schema"; import { users } from "./schema"; diff --git a/docs/copilot-context.md b/docs/copilot-context.md index a163008..8cbb850 100644 --- a/docs/copilot-context.md +++ b/docs/copilot-context.md @@ -1,4 +1,4 @@ -# Project Context for GitHub Copilot (v1.2.6) +# Project Context for GitHub Copilot (v1.2.7) This document provides technical context, architectural decisions, and code conventions for the **Alert Message Center** project. It is intended to help AI assistants understand the codebase.