mirror of https://github.com/status-im/migrate.git
add some more comments
This commit is contained in:
parent
8ba71b0754
commit
cfc9f10a6e
6
log.go
6
log.go
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue