mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
analyser fixes
This commit is contained in:
parent
b0c7adf0d1
commit
aa709dbee3
@ -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 {
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user