fix(sql-migrate): add missing period 'basename+".up.sql"'

This commit is contained in:
AJ ONeal 2026-07-07 14:12:45 -06:00
parent 965c233543
commit e9bf259856
No known key found for this signature in database

View File

@ -958,7 +958,7 @@ func fixupMigration(dir string, basename string) (up, down bool, warn error, err
}
if !deletesOnDown {
if id == "" {
return false, false, fmt.Errorf("must manually append \"DELETE FROM _migrations WHERE id = '<id>'\" to %s with id from %s", downPath, basename+"up.sql"), nil
return false, false, fmt.Errorf("must manually append \"DELETE FROM _migrations WHERE id = '<id>'\" to %s with id from %s", downPath, basename+".up.sql"), nil
}
downScan.Close()
downFile, err := os.OpenFile(downPath, os.O_APPEND|os.O_WRONLY, 0o644)