Skip to content

Commit

Permalink
Fixed goose API break.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Sep 7, 2014
1 parent 370e697 commit e35f415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database.go
Expand Up @@ -38,7 +38,7 @@ type Database struct {
func OpenDatabase(path string) (*Database, error) {
// Find and run the migrations using goose. This also auto-creates the DB.
dbDriver := goose.DBDriver{"sqlite3", path, "github.com/mattn/go-sqlite3", &goose.Sqlite3Dialect{}}
dbConf := goose.DBConf{migrationsDir, "prod", dbDriver}
dbConf := goose.DBConf{MigrationsDir: migrationsDir, Env: "prod", Driver: dbDriver}
target, err := goose.GetMostRecentDBVersion(migrationsDir)
if err != nil {
return nil, err
Expand Down

0 comments on commit e35f415

Please sign in to comment.