From e9bf259856e7e67b13b981dd42543a30eb99780b Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 7 Jul 2026 14:12:45 -0600 Subject: [PATCH] fix(sql-migrate): add missing period 'basename+".up.sql"' --- cmd/sql-migrate/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)