Upgrade sqlite driver

This commit is contained in:
Jinzhu 2021-10-08 17:31:58 +08:00
parent b46e2afc4a
commit d4c838c1ce
2 changed files with 1 additions and 5 deletions

View File

@ -8,7 +8,7 @@ require (
github.com/lib/pq v1.10.3 github.com/lib/pq v1.10.3
gorm.io/driver/mysql v1.1.2 gorm.io/driver/mysql v1.1.2
gorm.io/driver/postgres v1.1.2 gorm.io/driver/postgres v1.1.2
gorm.io/driver/sqlite v1.1.5 gorm.io/driver/sqlite v1.1.6
gorm.io/driver/sqlserver v1.0.9 gorm.io/driver/sqlserver v1.0.9
gorm.io/gorm v1.21.15 gorm.io/gorm v1.21.15
) )

View File

@ -357,10 +357,6 @@ func TestMigrateColumns(t *testing.T) {
} }
func TestMigrateConstraint(t *testing.T) { func TestMigrateConstraint(t *testing.T) {
if DB.Dialector.Name() == "sqlite" {
t.Skip()
}
names := []string{"Account", "fk_users_account", "Pets", "fk_users_pets", "Company", "fk_users_company", "Team", "fk_users_team", "Languages", "fk_users_languages"} names := []string{"Account", "fk_users_account", "Pets", "fk_users_pets", "Company", "fk_users_company", "Team", "fk_users_team", "Languages", "fk_users_languages"}
for _, name := range names { for _, name := range names {