Upgrade to Go 1.9 (#19)

This commit is contained in:
Adrian Macneil 2018-01-07 12:52:10 -08:00 committed by GitHub
parent 12e798c691
commit 6d5a22fce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 11 deletions

View file

@ -1,4 +1,4 @@
FROM golang:1.8
FROM golang:1.9
# required to force cgo (for sqlite driver) with cross compile
ENV CGO_ENABLED 1

12
db.go
View file

@ -195,11 +195,7 @@ func (db *DB) Migrate() error {
}
// record migration
if err := drv.InsertMigration(tx, ver); err != nil {
return err
}
return nil
return drv.InsertMigration(tx, ver)
})
if err != nil {
return err
@ -338,11 +334,7 @@ func (db *DB) Rollback() error {
}
// remove migration record
if err := drv.DeleteMigration(tx, latest); err != nil {
return err
}
return nil
return drv.DeleteMigration(tx, latest)
})
if err != nil {
return err