Skip to content

Commit 51aa4ca

Browse files
committed
Merge pull request #32 from vlkv/master
FIXED "go vet ./..." error: unresolvable package for gorp.MySQLDialec…
2 parents b52b10a + de435ae commit 51aa4ca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

migrate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ type MigrationRecord struct {
128128
var MigrationDialects = map[string]gorp.Dialect{
129129
"sqlite3": gorp.SqliteDialect{},
130130
"postgres": gorp.PostgresDialect{},
131-
"mysql": gorp.MySQLDialect{"InnoDB", "UTF8"},
131+
"mysql": gorp.MySQLDialect{Engine: "InnoDB", Encoding: "UTF8"},
132132
"mssql": gorp.SqlServerDialect{},
133133
"oci8": gorp.OracleDialect{},
134134
}

sql-migrate/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
var dialects = map[string]gorp.Dialect{
2020
"sqlite3": gorp.SqliteDialect{},
2121
"postgres": gorp.PostgresDialect{},
22-
"mysql": gorp.MySQLDialect{"InnoDB", "UTF8"},
22+
"mysql": gorp.MySQLDialect{Engine: "InnoDB", Encoding: "UTF8"},
2323
}
2424

2525
var ConfigFile string

0 commit comments

Comments
 (0)