diff --git a/cmd/sql-migrate/main.go b/cmd/sql-migrate/main.go index 0e536fb..203f3ff 100644 --- a/cmd/sql-migrate/main.go +++ b/cmd/sql-migrate/main.go @@ -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 = ''\" to %s with id from %s", downPath, basename+"up.sql"), nil + return false, false, fmt.Errorf("must manually append \"DELETE FROM _migrations WHERE 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)