Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
add some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattes committed Feb 10, 2017
1 parent 8ba71b0 commit cfc9f10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions log.go
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit cfc9f10

Please sign in to comment.