Skip to content

Commit

Permalink
Merge pull request #697 from polywrap/dev
Browse files Browse the repository at this point in the history
fix: only migrate workspaces that exist
  • Loading branch information
dOrgJelli authored Jan 24, 2024
2 parents 2dde2e1 + bbb1ccd commit 6c4e2b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ INSERT INTO "public"."workspace_files" ("chat_id", "path")
SELECT
"path_tokens"[1]::uuid as "chat_id",
"name" as "path"
from
FROM
storage.objects
JOIN chats ON chats.id = "path_tokens"[1]::uuid
where
bucket_id = 'workspaces';

Expand Down

0 comments on commit 6c4e2b6

Please sign in to comment.