mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-08 23:45:22 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f35d084dd4 | ||
|
|
274daf52c0 | ||
|
|
da52d767eb |
@@ -1,12 +1,11 @@
|
|||||||
ALTER TABLE "git_provider" ADD COLUMN "userId" text;--> statement-breakpoint
|
ALTER TABLE "git_provider" ADD COLUMN "userId" text;--> statement-breakpoint
|
||||||
|
|
||||||
-- Update existing git providers to be owned by the organization owner
|
-- Update existing git providers to be owned by the organization owner
|
||||||
-- We need to get the account.user_id for the organization owner
|
-- We can get the owner_id directly from the organization table
|
||||||
UPDATE "git_provider"
|
UPDATE "git_provider"
|
||||||
SET "userId" = (
|
SET "userId" = (
|
||||||
SELECT a.user_id
|
SELECT o."owner_id"
|
||||||
FROM "organization" o
|
FROM "organization" o
|
||||||
JOIN "account" a ON o."owner_id" = a.user_id
|
|
||||||
WHERE o.id = "git_provider"."organizationId"
|
WHERE o.id = "git_provider"."organizationId"
|
||||||
);--> statement-breakpoint
|
);--> statement-breakpoint
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dokploy",
|
"name": "dokploy",
|
||||||
"version": "v0.23.0",
|
"version": "v0.23.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
|||||||
Reference in New Issue
Block a user