From 00103c49b2e146763ceba901f3b9492645f37e84 Mon Sep 17 00:00:00 2001 From: zhangleitao Date: Fri, 18 Oct 2024 17:20:52 +0800 Subject: [PATCH] fix autoincrement --- schema/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/schema.go b/schema/schema.go index db236797..93ccca40 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -298,7 +298,7 @@ func ParseWithSpecialTableName(dest interface{}, cacheStore *sync.Map, namer Nam } field.HasDefaultValue = true - field.AutoIncrement = true + field.AutoIncrement = false } } }