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 bc3fb945af
commit 71671b7852
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 !deletesOnDown {
if id == "" { 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() _ = downScan.Close()
downFile, err := os.OpenFile(downPath, os.O_APPEND|os.O_WRONLY, 0o644) downFile, err := os.OpenFile(downPath, os.O_APPEND|os.O_WRONLY, 0o644)