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

main
ts 16 lines 516 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 INDEX IF NOT EXISTS idx_projection_threads_shell_active
9 ON projection_threads(deleted_at, archived_at, project_id, created_at, thread_id)
10 `;
11
12 yield* sql`
13 CREATE INDEX IF NOT EXISTS idx_projection_threads_shell_archived
14 ON projection_threads(deleted_at, archived_at, project_id, thread_id)
15 `;
16 });