From b1f8a9cefbe364a932989f6ac8e132da2e0831b2 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 30 Jun 2016 16:33:09 +0800 Subject: [PATCH] resolved go-xorm/xorm#416 --- column.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/column.go b/column.go index 7d963231..36016ef6 100644 --- a/column.go +++ b/column.go @@ -23,7 +23,7 @@ type Column struct { Length2 int Nullable bool Default string - Indexes map[string]bool + Indexes map[string]int IsPrimaryKey bool IsAutoIncrement bool MapType int @@ -50,7 +50,7 @@ func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable Length2: len2, Nullable: nullable, Default: "", - Indexes: make(map[string]bool), + Indexes: make(map[string]int), IsPrimaryKey: false, IsAutoIncrement: false, MapType: TWOSIDES,