Skip to content

Commit 33de28c

Browse files
committed
Warn when failed to migrate from placeholder
1 parent b8a8909 commit 33de28c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/sqlite/migrations/32_postmigrate.go

+4
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ func (m *schema32Migrator) migrateFiles(ctx context.Context) error {
187187
if err != nil {
188188
return fmt.Errorf("migrating file %s: %w", p, err)
189189
}
190+
} else {
191+
// if we don't reassign from the placeholder, it will fail
192+
// so log a warning at least here
193+
logger.Warnf("Unable to migrate invalid path: %s", p)
190194
}
191195

192196
lastID = id

0 commit comments

Comments
 (0)