Skip to content

Commit

Permalink
Merge pull request #816 from burner-account/patch-2
Browse files Browse the repository at this point in the history
feat: prefix migration files with 1 upto 14 digits
  • Loading branch information
vmihailenco authored Apr 17, 2023
2 parents 7cd855e + b74b671 commit 522ad5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrate/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func migrationFile() string {
return ""
}

var fnameRE = regexp.MustCompile(`^(\d{14})_([0-9a-z_\-]+)\.`)
var fnameRE = regexp.MustCompile(`^(\d{1,14})_([0-9a-z_\-]+)\.`)

func extractMigrationName(fpath string) (string, string, error) {
fname := filepath.Base(fpath)
Expand Down

0 comments on commit 522ad5a

Please sign in to comment.