mirror of https://github.com/go-gorm/gorm.git
ignore empty dialect in TestManyToManyWithMultiPrimaryKeys
This commit is contained in:
parent
d61af54b96
commit
5aca010140
|
@ -21,7 +21,7 @@ type Tag struct {
|
|||
}
|
||||
|
||||
func TestManyToManyWithMultiPrimaryKeys(t *testing.T) {
|
||||
if dialect := os.Getenv("GORM_DIALECT"); dialect != "sqlite" {
|
||||
if dialect := os.Getenv("GORM_DIALECT"); dialect != "" && dialect != "sqlite" {
|
||||
DB.Exec(fmt.Sprintf("drop table blog_tags;"))
|
||||
DB.AutoMigrate(&Blog{}, &Tag{})
|
||||
blog := Blog{
|
||||
|
|
Loading…
Reference in New Issue