test: only for postgres

This commit is contained in:
a631807682 2022-04-09 18:03:14 +08:00
parent 68c3c24ca4
commit 09f8bd0ad4
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB

View File

@ -577,6 +577,10 @@ func TestMigrateColumnOrder(t *testing.T) {
// https://github.com/go-gorm/gorm/issues/5047 // https://github.com/go-gorm/gorm/issues/5047
func TestMigrateSercialColumn(t *testing.T) { func TestMigrateSercialColumn(t *testing.T) {
if DB.Dialector.Name() != "postgres" {
return
}
type Event struct { type Event struct {
ID uint `gorm:"primarykey"` ID uint `gorm:"primarykey"`
UID uint32 UID uint32