This commit is contained in:
Jan Prochazka 2024-10-29 15:22:13 +01:00
parent a674b9b3a1
commit 4dcf47b81f

View File

@ -12,7 +12,10 @@ function pickImportantTableInfo(engine, table) {
if (!engine.skipAutoIncrement) props.push('autoIncrement');
return {
pureName: table.pureName,
columns: table.columns.filter(x => x.columnName != 'rowid').map(fp.pick(props)),
columns: table.columns
.filter(x => x.columnName != 'rowid')
.map(fp.pick(props))
.map(props => _.omitBy(props, x => x == null)),
};
}