Skip to content

Commit

Permalink
fix: base path of migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Aug 29, 2024
1 parent 710961d commit 615aa94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (s *Store) Migrate(ctx context.Context) error {
}

if version.IsVersionGreaterThan(schemaVersion, latestMigrationHistoryVersion) {
filePaths, err := fs.Glob(migrationFS, fmt.Sprintf("%s/*/*.sql", s.getMigrationBasePath()))
filePaths, err := fs.Glob(migrationFS, fmt.Sprintf("%s*/*.sql", s.getMigrationBasePath()))
if err != nil {
return errors.Wrap(err, "failed to read migration files")
}
Expand Down Expand Up @@ -263,7 +263,7 @@ func (s *Store) normalizedMigrationHistoryList(ctx context.Context) error {
}

schemaVersionMap := map[string]string{}
filePaths, err := fs.Glob(migrationFS, fmt.Sprintf("%s/*/*.sql", s.getMigrationBasePath()))
filePaths, err := fs.Glob(migrationFS, fmt.Sprintf("%s*/*.sql", s.getMigrationBasePath()))
if err != nil {
return errors.Wrap(err, "failed to read migration files")
}
Expand Down

0 comments on commit 615aa94

Please sign in to comment.