analyser fixes

This commit is contained in:
Jan Prochazka 2021-05-23 19:46:50 +02:00
parent b0c7adf0d1
commit aa709dbee3
2 changed files with 3 additions and 2 deletions

View File

@ -188,9 +188,9 @@ export class DatabaseAnalyser {
};
res.push(action);
}
return [..._compact(res), ...this.getDeletedObjects(snapshot)];
}
return [..._compact(res), ...this.getDeletedObjects(snapshot)];
}
static createEmptyStructure(): DatabaseInfo {

View File

@ -103,6 +103,7 @@ class Analyser extends DatabaseAnalyser {
pureName: view.pure_name,
schemaName: view.schema_name,
contentHash: view.hash_code,
createSql: `CREATE VIEW "${view.schema_name}"."${view.pure_name}"\nAS\n${view.create_sql}`,
columns: columns.rows
.filter(col => col.pure_name == view.pure_name && col.schema_name == view.schema_name)
.map(getColumnInfo),