From 3e29544063607a8c961d387b2d85731e2ba79b83 Mon Sep 17 00:00:00 2001 From: kononnable Date: Thu, 31 Dec 2020 22:45:35 +0100 Subject: [PATCH] fix @PrimaryGeneratedColumn marked as unique(#239) --- src/drivers/AbstractDriver.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/drivers/AbstractDriver.ts b/src/drivers/AbstractDriver.ts index 637bde1..29c0d54 100644 --- a/src/drivers/AbstractDriver.ts +++ b/src/drivers/AbstractDriver.ts @@ -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;