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 idx_orchestration_events_application_high_water |
| 9 | ON orchestration_events(sequence) |
| 10 | WHERE aggregate_kind = 'project' |
| 11 | OR (application_event_version = 2 AND aggregate_kind = 'thread') |
| 12 | `; |
| 13 | yield* sql` |
| 14 | CREATE INDEX idx_orchestration_events_agent_stream_sequence |
| 15 | ON orchestration_events(stream_id, sequence) |
| 16 | WHERE application_event_version = 2 AND aggregate_kind = 'thread' |
| 17 | `; |
| 18 | }); |