Skip to content

Commit

Permalink
fix: only migrate workspaces that exist
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Jan 24, 2024
1 parent e33a6be commit bbb1ccd
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 bbb1ccd

Please sign in to comment.