Skip to content

Commit

Permalink
feat(evaluations): rename some span columns and change tenancy to the…
Browse files Browse the repository at this point in the history
… workpsace (#713)
  • Loading branch information
geclos authored Dec 12, 2024
1 parent c15b1ec commit 33c8148
Show file tree
Hide file tree
Showing 7 changed files with 11,928 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/drizzle/0108_kind_pete_wisdom.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "latitude"."spans" RENAME COLUMN "tool_calls" TO "tools";
12 changes: 12 additions & 0 deletions packages/core/drizzle/0109_misty_echo.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ALTER TABLE "latitude"."traces" DROP CONSTRAINT "traces_project_id_projects_id_fk";
--> statement-breakpoint
DROP INDEX IF EXISTS "traces_project_id_idx";--> statement-breakpoint
ALTER TABLE "latitude"."traces" ADD COLUMN "workspace_id" bigint NOT NULL;--> statement-breakpoint
DO $$ BEGIN
ALTER TABLE "latitude"."traces" ADD CONSTRAINT "traces_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "latitude"."workspaces"("id") ON DELETE cascade ON UPDATE no action;
EXCEPTION
WHEN duplicate_object THEN null;
END $$;
--> statement-breakpoint
CREATE INDEX IF NOT EXISTS "traces_workspace_id_idx" ON "latitude"."traces" USING btree ("workspace_id");--> statement-breakpoint
ALTER TABLE "latitude"."traces" DROP COLUMN IF EXISTS "project_id";
2 changes: 2 additions & 0 deletions packages/core/drizzle/0110_complex_ultimatum.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE "latitude"."spans" ADD COLUMN "document_uuid" uuid;--> statement-breakpoint
ALTER TABLE "latitude"."spans" DROP COLUMN IF EXISTS "prompt_path";
Loading

0 comments on commit 33c8148

Please sign in to comment.