fix:fix ci error 4

This commit is contained in:
lijunshi 2024-04-28 13:53:43 +08:00
parent 6bb73507be
commit 584f744a28
1 changed files with 23 additions and 20 deletions

View File

@ -753,6 +753,7 @@ func getKeysFromMap(m map[string]*schemas.Index) []string {
}
func TestSync2_3(t *testing.T) {
if testEngine.Dialect().URI().DBType == schemas.MYSQL {
type SyncTestUser struct {
Id int `xorm:"pk autoincr 'id'"`
Name string `xorm:"'name' notnull comment('nickname')" json:"name"`
@ -776,4 +777,6 @@ func TestSync2_3(t *testing.T) {
assert.EqualValues(t, tables[0].GetColumn("id").Nullable, tableInfo.GetColumn("id").Nullable)
assert.EqualValues(t, tables[0].GetColumn("id").Comment, tableInfo.GetColumn("id").Comment)
}
}