mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 13:46:00 +00:00
SYNC: fixes
This commit is contained in:
committed by
Diflow
parent
20a1cc89ae
commit
805a063fa1
@@ -52,7 +52,7 @@ async function importDbFromFolder({ connection, systemConnection, driver, folder
|
||||
// console.log('CREATING STRUCTURE:', sql);
|
||||
await executeQuery({ connection, systemConnection: dbhan, driver, sql, logScriptItems: true });
|
||||
|
||||
for (const table of model.tables) {
|
||||
for (const table of modelAdapted.tables) {
|
||||
const fileName = path.join(folder, `${table.pureName}.jsonl`);
|
||||
if (await fs.exists(fileName)) {
|
||||
const src = await jsonLinesReader({ fileName });
|
||||
|
||||
Reference in New Issue
Block a user