add some more comments

This commit is contained in:
Matthias Kadenbach 2017-02-09 18:23:08 -08:00
parent 8ba71b0754
commit cfc9f10a6e
2 changed files with 7 additions and 1 deletions

6
log.go
View File

@ -1,6 +1,12 @@
package migrate
// Logger is an interface so you can pass in your own
// logging implementation.
type Logger interface {
// Printf is like fmt.Printf
Printf(format string, v ...interface{})
// Verbose should return true when verbose logging output is wanted
Verbose() bool
}

View File

@ -14,10 +14,10 @@ import (
sStub "github.com/mattes/migrate/source/stub"
)
// sourceStubMigrations hold the following migrations:
// u = up migration, d = down migration, n = version
// | 1 | - | 3 | 4 | 5 | - | 7 |
// | u d | - | u | u d | d | - | u d |
var sourceStubMigrations *source.Migrations
func init() {