mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
analyser fixes
This commit is contained in:
@@ -188,10 +188,10 @@ export class DatabaseAnalyser {
|
|||||||
};
|
};
|
||||||
res.push(action);
|
res.push(action);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return [..._compact(res), ...this.getDeletedObjects(snapshot)];
|
return [..._compact(res), ...this.getDeletedObjects(snapshot)];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static createEmptyStructure(): DatabaseInfo {
|
static createEmptyStructure(): DatabaseInfo {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
pureName: view.pure_name,
|
pureName: view.pure_name,
|
||||||
schemaName: view.schema_name,
|
schemaName: view.schema_name,
|
||||||
contentHash: view.hash_code,
|
contentHash: view.hash_code,
|
||||||
|
createSql: `CREATE VIEW "${view.schema_name}"."${view.pure_name}"\nAS\n${view.create_sql}`,
|
||||||
columns: columns.rows
|
columns: columns.rows
|
||||||
.filter(col => col.pure_name == view.pure_name && col.schema_name == view.schema_name)
|
.filter(col => col.pure_name == view.pure_name && col.schema_name == view.schema_name)
|
||||||
.map(getColumnInfo),
|
.map(getColumnInfo),
|
||||||
|
|||||||
Reference in New Issue
Block a user