From 23f194ad59d298ec9527dbc0727c8412bf7dd6e2 Mon Sep 17 00:00:00 2001 From: a631807682 <631807682@qq.com> Date: Sun, 8 May 2022 17:53:27 +0800 Subject: [PATCH] test: test mysql only --- tests/migrate_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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"`