From ecfa69fddb6a48d8ba325b89d5672f90e3e51967 Mon Sep 17 00:00:00 2001 From: kanade <3136520963@qq.com> Date: Sat, 8 May 2021 11:55:38 +0800 Subject: [PATCH] =?UTF-8?q?primaryKey=20=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create.go b/create.go index 57e8dcd..ae1db85 100644 --- a/create.go +++ b/create.go @@ -45,7 +45,7 @@ func Create(db *gorm.DB, table string, path ...string) error { } pri := "" if column.ColumnKey == "PRI" { - pri = "`gorm:\"primarykey\"`" + pri = "`gorm:\"primaryKey\"`" } comment := "" if column.ColumnComment != "" {