Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.

Commit c8da389

Browse files
committed
Rename filePrefix to fileSuffix
1 parent 2361413 commit c8da389

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

file/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ func FindByVersion(version int64, files []File) *File {
6060
return nil
6161
}
6262

63-
var filePrefix = map[bool]string{
63+
var fileSuffix = map[bool]string{
6464
direction.Up: "up",
6565
direction.Down: "down",
6666
}
6767

6868
// ListFiles lists migration files on a given path
6969
func ListFiles(path string, up bool) ([]File, error) {
70-
files, err := filepath.Glob(filepath.Join(path, "*_*."+filePrefix[up]+".sql"))
70+
files, err := filepath.Glob(filepath.Join(path, "*_*."+fileSuffix[up]+".sql"))
7171
if err != nil {
7272
return nil, errors.Annotate(err, "getting migration files failed")
7373
}

0 commit comments

Comments
 (0)