mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 18:45:59 +00:00
#816 fixed redshift DB
This commit is contained in:
@@ -293,16 +293,16 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
|
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
{
|
{
|
||||||
tables: res.tables.length,
|
tables: res.tables?.length,
|
||||||
columns: _.sum(res.tables.map(x => x.columns.length)),
|
columns: _.sum(res.tables?.map(x => x.columns?.length)),
|
||||||
primaryKeys: res.tables.filter(x => x.primaryKey).length,
|
primaryKeys: res.tables?.filter(x => x.primaryKey)?.length,
|
||||||
foreignKeys: _.sum(res.tables.map(x => x.foreignKeys.length)),
|
foreignKeys: _.sum(res.tables?.map(x => x.foreignKeys?.length)),
|
||||||
indexes: _.sum(res.tables.map(x => x.indexes.length)),
|
indexes: _.sum(res.tables?.map(x => x.indexes?.length)),
|
||||||
uniques: _.sum(res.tables.map(x => x.uniques.length)),
|
uniques: _.sum(res.tables?.map(x => x.uniques?.length)),
|
||||||
views: res.views.length,
|
views: res.views?.length,
|
||||||
matviews: res.matviews.length,
|
matviews: res.matviews?.length,
|
||||||
procedures: res.procedures.length,
|
procedures: res.procedures?.length,
|
||||||
functions: res.functions.length,
|
functions: res.functions?.length,
|
||||||
},
|
},
|
||||||
'Database structured finalized'
|
'Database structured finalized'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user