Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(evaluations): rename some span columns and change tenancy to the workspace #713

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading