diff --git a/tests/migrate_test.go b/tests/migrate_test.go index ed089fc7..7ef81a35 100644 --- a/tests/migrate_test.go +++ b/tests/migrate_test.go @@ -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"`