From ad0cdf6ae6be972517d0163e5699ba852a5a5574 Mon Sep 17 00:00:00 2001 From: lijunshi Date: Sun, 28 Apr 2024 15:17:22 +0800 Subject: [PATCH] fix:fix ci error 6 --- tests/schema_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"` }