From e35f4157abaa59b58c140e995ca30524882fc463 Mon Sep 17 00:00:00 2001 From: Patrick Fairbank Date: Sat, 6 Sep 2014 19:19:37 -0700 Subject: [PATCH] Fixed goose API break. --- database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.go b/database.go index 501ad33..9f8339c 100644 --- a/database.go +++ b/database.go @@ -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