From e89ac627dda2829bd23e08eba4fc6ba6b56cabc0 Mon Sep 17 00:00:00 2001 From: agent_vscode Date: Sun, 5 Jul 2026 00:59:01 +0300 Subject: [PATCH] fix(migrations): rename ai-chat-runs migration to post-merge timestamp 20260627T130000-ai-chat-runs sorted before the already-executed 20260702T120000-ai-chat-page-snapshot, so Kysely's strict ordering check ("corrupted migrations") crash-looped the server on startup. - rename 20260627T130000-ai-chat-runs.ts -> 20260704T130000-ai-chat-runs.ts - update the mirror comment in database/types/db.d.ts --- ...7T130000-ai-chat-runs.ts => 20260704T130000-ai-chat-runs.ts} | 0 apps/server/src/database/types/db.d.ts | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename apps/server/src/database/migrations/{20260627T130000-ai-chat-runs.ts => 20260704T130000-ai-chat-runs.ts} (100%) diff --git a/apps/server/src/database/migrations/20260627T130000-ai-chat-runs.ts b/apps/server/src/database/migrations/20260704T130000-ai-chat-runs.ts similarity index 100% rename from apps/server/src/database/migrations/20260627T130000-ai-chat-runs.ts rename to apps/server/src/database/migrations/20260704T130000-ai-chat-runs.ts diff --git a/apps/server/src/database/types/db.d.ts b/apps/server/src/database/types/db.d.ts index 908d5c73..bf5a9663 100644 --- a/apps/server/src/database/types/db.d.ts +++ b/apps/server/src/database/types/db.d.ts @@ -660,7 +660,7 @@ export interface AiChatMessages { } // The agent RUN as a first-class server-side lifecycle object (#184 phase 1). -// Mirrors migration 20260627T130000-ai-chat-runs.ts. A run is created when an +// Mirrors migration 20260704T130000-ai-chat-runs.ts. A run is created when an // agent turn starts and survives the browser disconnecting; the DB is the source // of truth a later client reconnects to. `assistantMessageId` links to the #183 // projection row (the assistant message this run materializes).