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
| 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 orchestration_v2_projection_turn_items_user_message_idx |
| 9 | ON orchestration_v2_projection_turn_items(thread_id, ordinal, turn_item_id) |
| 10 | WHERE type = 'user_message' |
| 11 | `; |
| 12 | yield* sql` |
| 13 | CREATE INDEX IF NOT EXISTS orchestration_v2_projection_nodes_live_idx |
| 14 | ON orchestration_v2_projection_nodes(thread_id) |
| 15 | WHERE status IN ('pending', 'starting', 'running', 'waiting') |
| 16 | `; |
| 17 | }); |