Skip to content

Commit

Permalink
feature: add workspace tenancy to provider logs
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 committed Oct 28, 2024
1 parent fb7edca commit ebc20f2
Show file tree
Hide file tree
Showing 19 changed files with 6,007 additions and 583 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 ebc20f2

Please sign in to comment.