fix: 添加数据库迁移补齐 User API Key 字段

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 17:36:10 +08:00
parent 5e6efdaf59
commit 5d199c4c5c

View File

@@ -0,0 +1,7 @@
-- AlterTable: Add API key fields to User
ALTER TABLE "User" ADD COLUMN "apiKeyHash" TEXT;
ALTER TABLE "User" ADD COLUMN "apiKeyEncrypted" TEXT;
ALTER TABLE "User" ADD COLUMN "apiKeyPrefix" TEXT;
-- AlterTable: Remove apiKeyHash from Project (moved to User)
ALTER TABLE "Project" DROP COLUMN "apiKeyHash";