mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-09 11:17:43 +02:00
QFIX: Migrate UUID (#7602)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
+1
-1
@@ -347,7 +347,7 @@ export async function updateDataWorkspaceIdToUuid (
|
||||
throw new Error('workspace uuid is required but not defined')
|
||||
}
|
||||
|
||||
await client`UPDATE ${client(table)} SET "workspaceId" = ${uuid} WHERE "workspaceIdOld" = ${ws.workspace}`
|
||||
await client`UPDATE ${client(table)} SET "workspaceId" = ${uuid} WHERE "workspaceIdOld" = ${ws.workspace} OR "workspaceIdOld" = ${uuid}`
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user