Use current db schema (#7094)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2024-11-04 19:53:01 +05:00
committed by GitHub
parent bcc09dc00e
commit 9d79ab65ae
5 changed files with 222 additions and 61 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ import {
import { getMongoClient, getWorkspaceMongoDB } from '@hcengineering/mongo'
import {
convertDoc,
createTable,
createTables,
getDBClient,
getDocFieldsByDomains,
retryTxn,
@@ -80,7 +80,7 @@ async function moveWorkspace (
tables = tables.filter((t) => include.has(t))
}
await createTable(pgClient, tables)
await createTables(pgClient, tables)
const token = generateToken(systemAccountEmail, wsId)
const endpoint = await getTransactorEndpoint(token, 'external')
const connection = (await connect(endpoint, wsId, undefined, {