@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 22 lines 668 Bytes
Raw
1 import * as Effect from "effect/Effect";
2 import * as SqlClient from "effect/sql/SqlClient";
3
4 export default Effect.gen(function* () {
5 const sql = yield* SqlClient.SqlClient;
6
7 yield* sql`
8 CREATE TABLE orchestration_v2_legacy_imports (
9 thread_id TEXT PRIMARY KEY,
10 source_updated_at TEXT NOT NULL,
11 shell_imported_at TEXT NOT NULL,
12 transcript_imported_at TEXT,
13 imported_message_count INTEGER NOT NULL DEFAULT 0,
14 last_error TEXT
15 )
16 `;
17
18 yield* sql`
19 CREATE INDEX orchestration_v2_legacy_imports_pending_transcript_idx
20 ON orchestration_v2_legacy_imports(transcript_imported_at, shell_imported_at, thread_id)
21 `;
22 });