Browse Source

bug fixed

xormplus 9 năm trước cách đây
mục cha
commit
d5f7cf7805
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      column.go

+ 2 - 2
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,