Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

ThreadLaunchWorkflows.ts

23 lines716 Bytes

1import * as Effect from "effect/Effect";
2import * as SqlClient from "effect/sql/SqlClient";
3​
4export default Effect.gen(function* () {
5 const sql = yield* SqlClient.SqlClient;
6 yield* sql`
7 CREATE TABLE IF NOT EXISTS orchestration_v2_thread_launch_workflows (
8 command_id TEXT PRIMARY KEY,
9 thread_id TEXT NOT NULL,
10 project_id TEXT NOT NULL,
11 status TEXT NOT NULL,
12 title TEXT NOT NULL,
13 worktree_path TEXT,
14 branch TEXT,
15 setup_committed INTEGER NOT NULL DEFAULT 0,
16 thread_committed INTEGER NOT NULL DEFAULT 0,
17 message_committed INTEGER NOT NULL DEFAULT 0,
18 last_error TEXT,
19 created_at TEXT NOT NULL,
20 updated_at TEXT NOT NULL
21 )
22 `;
23});