show columns

This commit is contained in:
Jan Prochazka
2020-02-02 13:18:56 +01:00
parent a1c5221844
commit 2a74718544
5 changed files with 43 additions and 15 deletions

View File

@@ -36,8 +36,8 @@ class MsSqlAnalyser extends DatabaseAnalayser {
.filter(col => col.objectId == table.objectId)
.map(({ isNullable, isIdentity, ...col }) => ({
...col,
notNull: isNullable != 'True',
autoIncrement: isIdentity == 'True',
notNull: !isNullable,
autoIncrement: !!isIdentity,
})),
}));
}