diff --git a/tests/schema_test.go b/tests/schema_test.go index 46500902..13c9ea48 100644 --- a/tests/schema_test.go +++ b/tests/schema_test.go @@ -754,7 +754,7 @@ func getKeysFromMap(m map[string]*schemas.Index) []string { type SyncTestUser struct { - Id int `xorm:"pk autoincr 'id'"` + Id int `xorm:"pk autoincr 'id' comment('primary key')"` Name string `xorm:"'name' notnull comment('nickname')" json:"name"` } @@ -762,9 +762,9 @@ func (m *SyncTestUser) TableName() string { return "sync_test_user" } -// add comment for id column + type SyncTestUser2 struct { - Id int `xorm:"pk autoincr 'id' comment('primary key')"` + Id int64 `xorm:"pk autoincr 'id' comment('primary key 2')"` Name string `xorm:"'name' notnull comment('nickname')" json:"name"` }