-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
3,006 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- Migrate configuration column from "evaluations" to "llm_as_judge_evaluation_metadatas" | ||
UPDATE "latitude"."llm_as_judge_evaluation_metadatas" | ||
SET "configuration" = "latitude"."evaluations"."configuration" | ||
FROM "latitude"."evaluations" | ||
WHERE "latitude"."evaluations"."metadata_id" = "latitude"."llm_as_judge_evaluation_metadatas"."id";--> statement-breakpoint | ||
|
||
--- Remove evaluation metadatas with NULL configuratios (these are llm_as_judge_evaluation_metadatas rows that were left when removing the original evaluation) | ||
DELETE FROM "latitude"."llm_as_judge_evaluation_metadatas" WHERE "latitude"."llm_as_judge_evaluation_metadatas"."configuration" IS NULL--> statement-breakpoint | ||
|
||
--- Set configuration column as NOT NULL | ||
ALTER TABLE "latitude"."llm_as_judge_evaluation_metadatas" ALTER COLUMN "configuration" SET NOT NULL;--> statement-breakpoint | ||
|
||
--- Drop the configuration column from evaluations | ||
ALTER TABLE "latitude"."evaluations" DROP COLUMN IF EXISTS "configuration"; |
Oops, something went wrong.