diff --git a/core/db.py b/core/db.py index 09ac716..dfc7047 100644 --- a/core/db.py +++ b/core/db.py @@ -702,6 +702,13 @@ def _migrate(conn: sqlite3.Connection): conn.execute("ALTER TABLE projects ADD COLUMN test_command TEXT DEFAULT NULL") conn.commit() + # KIN-102: Reset legacy 'make test' default — projects using old schema default get auto-detection. + # Any project with a real Makefile should have test_command set explicitly, not via this default. + conn.execute( + "UPDATE projects SET test_command = NULL WHERE test_command = 'make test'" + ) + conn.commit() + # Rename legacy 'auto' → 'auto_complete' (KIN-063) conn.execute( "UPDATE projects SET execution_mode = 'auto_complete' WHERE execution_mode = 'auto'"