The best way to control Claude Code, Codex and more from any computer or phone
| 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 | // No query filters events by correlation_id, so this index only adds write |
| 8 | // and storage cost. The column and its values stay. |
| 9 | yield* sql`DROP INDEX IF EXISTS idx_orch_events_correlation_id`; |
| 10 | }); |