Files
t3code/apps/server/src/persistence/Migrations/017_ProjectionModelSelectionOptions.ts
T
Julius Marminge 01358d1006 Persist provider-aware model selections
- Replace model-only fields with provider/model selections across orchestration
- Add projection schema and migration updates for provider-backed snapshots
- Update server and web tests to use the new selection shape
2026-03-24 11:10:33 -07:00

29 lines
645 B
TypeScript

import * as Effect from "effect/Effect";
import * as SqlClient from "effect/unstable/sql/SqlClient";
export default Effect.gen(function* () {
const sql = yield* SqlClient.SqlClient;
yield* sql`
ALTER TABLE projection_projects
ADD COLUMN default_model_options_json TEXT
`;
yield* sql`
UPDATE projection_projects
SET default_model_options_json = NULL
WHERE default_model_options_json IS NULL
`;
yield* sql`
ALTER TABLE projection_threads
ADD COLUMN model_options_json TEXT
`;
yield* sql`
UPDATE projection_threads
SET model_options_json = NULL
WHERE model_options_json IS NULL
`;
});