create table in multi-schema

This commit is contained in:
Jan Prochazka
2024-09-19 09:24:08 +02:00
parent 55db98fe1b
commit 5f23b29c4e
7 changed files with 44 additions and 24 deletions

View File

@@ -132,7 +132,10 @@ export class DatabaseAnalyser {
this.modifications = structureModifications;
if (structureUpdated) this.structure = structureUpdated;
logger.info({ modifications: this.modifications }, 'DB modifications detected:');
return this.addEngineField(this.mergeAnalyseResult(await this._runAnalysis()));
return {
...this.addEngineField(this.mergeAnalyseResult(await this._runAnalysis())),
schemas,
};
}
mergeAnalyseResult(newlyAnalysed) {