fix @PrimaryGeneratedColumn marked as unique(#239)

This commit is contained in:
kononnable 2020-12-31 22:45:35 +01:00
parent a4df1141c4
commit 3e29544063

View File

@ -409,7 +409,6 @@ export default abstract class AbstractDriver {
// eslint-disable-next-line no-param-reassign
col.primary = true;
if (
primaryIndex!.columns.length === 1 &&
col.options.unique
) {
delete col.options.unique;