test: test mysql only

This commit is contained in:
a631807682 2022-05-08 17:53:27 +08:00
parent c42089d0b0
commit 23f194ad59
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -659,6 +659,10 @@ func TestMigrateWithSpecialName(t *testing.T) {
}
func TestUniqueColumn(t *testing.T) {
if DB.Dialector.Name() != "mysql" {
return
}
type UniqueTest struct {
ID string `gorm:"primary_key"`
Name string `gorm:"unique"`