do not specify @index (primary keys only)

This commit is contained in:
francesco.spilla 2021-01-14 14:17:53 +01:00
parent 74be5631f6
commit e51a2e587f

View File

@ -340,7 +340,7 @@ export default class MssqlDriver extends AbstractDriver {
records.forEach((record) => {
indexInfo.columns.push(record.ColumnName);
});
ent.indices.push(indexInfo);
if (indexInfo.primary) ent.indices.push(indexInfo);
});
});