Skip to content

Commit

Permalink
feature: add workspace tenancy to provider logs (#511)
Browse files Browse the repository at this point in the history
This commit adds a workspace tenancy to provider logs. Since provider
logs won't have a mandatory providerId field, we lose the tenancy so we
have to add it back with a new workspace_id direct reference.
  • Loading branch information
geclos authored Oct 28, 2024
1 parent fb7edca commit ecde89e
Show file tree
Hide file tree
Showing 23 changed files with 6,020 additions and 587 deletions.
1 change: 1 addition & 0 deletions packages/core/drizzle/0082_broken_dagger.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "latitude"."provider_logs" ADD COLUMN "workspace_id" bigint;
1 change: 1 addition & 0 deletions packages/core/drizzle/0084_optimal_miracleman.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS "provider_logs_workspace_id_index" ON "latitude"."provider_logs" USING btree ("workspace_id");
Loading

0 comments on commit ecde89e

Please sign in to comment.