Files
t3code/apps/server/src/persistence/Migrations/045_OrchestrationV2ThreadLaunchWorkflows.ts
T
Julius MarmingeandClaude Fable 5 434673d803 chore(server): renumber v2 migrations 038-046 to 041-049 after main's 038-040
Main released ProjectionThreadsPinOrderKey (038),
ProjectionProjectsDefaultThreadEnvMode (039) and
ProjectionProjectFaviconPath (040), so the branch-private v2 stack shifts
up by three. Registry ids were already 41-49; this renames the files and
identifiers to match and updates the ledger expectations and through-id
boundaries in the migration tests (released boundary 37 -> 40).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-14 11:23:51 +02:00

24 lines
725 B
TypeScript

import * as Effect from "effect/Effect";
import * as SqlClient from "effect/unstable/sql/SqlClient";
export default Effect.gen(function* () {
const sql = yield* SqlClient.SqlClient;
yield* sql`
CREATE TABLE IF NOT EXISTS orchestration_v2_thread_launch_workflows (
command_id TEXT PRIMARY KEY,
thread_id TEXT NOT NULL,
project_id TEXT NOT NULL,
status TEXT NOT NULL,
title TEXT NOT NULL,
worktree_path TEXT,
branch TEXT,
setup_committed INTEGER NOT NULL DEFAULT 0,
thread_committed INTEGER NOT NULL DEFAULT 0,
message_committed INTEGER NOT NULL DEFAULT 0,
last_error TEXT,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
)
`;
});