Fix no migrations error (#1475)

This commit is contained in:
Zoe Roux 2026-04-27 12:00:33 +02:00 committed by GitHub
parent 5693f47c3f
commit fd19b484ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,7 +121,7 @@ func (s *MetadataService) setupDb() (*pgxpool.Pool, error) {
return nil, err
}
err = m.Up()
if err != nil {
if err != nil && err != migrate.ErrNoChange {
slog.ErrorContext(ctx, "failed to migrated database", "err", err)
return nil, err
}