From 43d75f23a01d9128e24a2d2dff95d78f3b8ba349 Mon Sep 17 00:00:00 2001 From: aliang Date: Thu, 28 Jul 2022 14:15:58 +0800 Subject: [PATCH] fix: int32 --- console/commands/orm/mysql.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/console/commands/orm/mysql.go b/console/commands/orm/mysql.go index e1414ec..b49ec80 100644 --- a/console/commands/orm/mysql.go +++ b/console/commands/orm/mysql.go @@ -507,17 +507,17 @@ type tableColumnIndex struct { } var typeForMysqlToGo = map[string]string{ - "int": "int64", - "integer": "int64", + "int": "int32", + "integer": "int32", "tinyint": "int32", "smallint": "int32", "mediumint": "int32", "bigint": "int64", - "int unsigned": "uint64", - "integer unsigned": "uint64", + "int unsigned": "uint32", + "integer unsigned": "uint32", "tinyint unsigned": "uint32", - "smallint unsigned": "uint64", - "mediumint unsigned": "uint64", + "smallint unsigned": "uint32", + "mediumint unsigned": "uint32", "bigint unsigned": "uint64", "bit": "int64", "bool": "bool",