From 9656e14fc758053f34f5cb0e906093e2a18f6162 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Fri, 13 Nov 2026 22:13:14 -0800 Subject: Remove timestamp version style in favor of always using sequential --- internal/repositories/migration_fs_repo.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/repositories/migration_fs_repo.go') diff --git a/internal/repositories/migration_fs_repo.go b/internal/repositories/migration_fs_repo.go index 72057ec..b328c90 100644 --- a/internal/repositories/migration_fs_repo.go +++ b/internal/repositories/migration_fs_repo.go @@ -90,11 +90,13 @@ func (mr migrationFsRepo) List() (map[string]*models.Migration, error) { if err != nil { return nil, err } - _, exists := migrations[migration.Version] + existing, exists := migrations[migration.Version] if exists { return nil, fmt.Errorf( - "%w: a local migration file with version %s already exists", + "%w: %s and %s both have version %s; renumber one of them", ErrMigrationVersionConflict, + existing.Name(), + migration.Name(), migration.Version, ) } -- cgit v1.2.3