Skip to content

Commit

Permalink
join other parts of the file name for making the function name (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vipul-rawat authored Sep 6, 2024
1 parent 807e48c commit 19bbb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migration/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func findMigrations(files []os.DirEntry) map[string]string {
continue
}

existingMig[fileParts[0]] = strings.TrimSuffix(fileParts[1], ".go")
existingMig[fileParts[0]] = strings.TrimSuffix(strings.Join(fileParts[1:], "_"), ".go")
}

return existingMig
Expand Down

0 comments on commit 19bbb03

Please sign in to comment.