mirror of https://github.com/pressly/goose.git
resolve refactoring fallout
parent
ad5db711d8
commit
c8383e8a34
|
@ -37,6 +37,7 @@ func runMigrations(conf *DBConf, target int) {
|
|||
if err != nil {
|
||||
log.Fatal("couldn't open DB:", err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
current, e := ensureDBVersion(db)
|
||||
if e != nil {
|
||||
|
|
|
@ -23,7 +23,6 @@ func runSQLMigration(db *sql.DB, script string, v int, direction bool) (count in
|
|||
if err != nil {
|
||||
log.Fatal("db.Begin:", err)
|
||||
}
|
||||
defer db.Close()
|
||||
|
||||
f, err := ioutil.ReadFile(script)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue