Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb57fc6

Browse files
committed
comments
1 parent 5389088 commit cb57fc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

file/file.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,12 @@ func (mf *MigrationFiles) ToLastFrom(version uint64) (Files, error) {
101101

102102
// From travels relatively through migration files.
103103
//
104-
// +1 will fetch the next up migration file.
104+
// +1 will fetch the next up migration file
105105
// +2 will fetch the next two up migration files
106-
// -1 will fetch the the current down migration file
107-
// -2 will fetch the current down and the next down migration file
106+
// +n will fetch ...
107+
// -1 will fetch the the previous down migration file
108+
// -2 will fetch the next two previous down migration files
109+
// -n will fetch ...
108110
func (mf *MigrationFiles) From(version uint64, relativeN int) (Files, error) {
109111
var d direction.Direction
110112
if relativeN > 0 {

0 commit comments

Comments
 (0)