show create view

This commit is contained in:
Jan Prochazka
2020-04-12 18:55:47 +02:00
parent 4bc252fdd2
commit 99a9b003bc
5 changed files with 18 additions and 4 deletions

View File

@@ -247,7 +247,7 @@ class MsSqlAnalyser extends DatabaseAnalayser {
...row,
createSql: getCreateSql(row),
columns: viewColumnRows.rows
.filter((col) => (col.objectId = row.objectId))
.filter((col) => col.objectId == row.objectId)
.map(({ isNullable, isIdentity, ...col }) => ({
...col,
notNull: !isNullable,