We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45a178e + da52d76 commit 274daf5Copy full SHA for 274daf5
apps/dokploy/drizzle/0094_numerous_carmella_unuscione.sql
@@ -1,12 +1,11 @@
1
ALTER TABLE "git_provider" ADD COLUMN "userId" text;--> statement-breakpoint
2
3
-- Update existing git providers to be owned by the organization owner
4
--- We need to get the account.user_id for the organization owner
+-- We can get the owner_id directly from the organization table
5
UPDATE "git_provider"
6
SET "userId" = (
7
- SELECT a.user_id
+ SELECT o."owner_id"
8
FROM "organization" o
9
- JOIN "account" a ON o."owner_id" = a.user_id
10
WHERE o.id = "git_provider"."organizationId"
11
);--> statement-breakpoint
12
0 commit comments