resolve refactoring fallout

pull/2/head
Liam Staskawicz 2012-12-15 12:04:19 -08:00
parent ad5db711d8
commit c8383e8a34
2 changed files with 1 additions and 1 deletions

View File

@ -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 {

View File

@ -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 {