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

main
ts 15 lines 472 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 const columns = yield* sql<{ readonly name: string }>`
7 PRAGMA table_info(projection_threads)
8 `;
9 if (!columns.some((column) => column.name === "auto_settle_disabled_at")) {
10 yield* sql`
11 ALTER TABLE projection_threads
12 ADD COLUMN auto_settle_disabled_at TEXT
13 `;
14 }
15 });