fix: 添加数据库迁移补齐 User API Key 字段
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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";
|
||||
Reference in New Issue
Block a user