kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-17 19:30:15 +02:00
parent e7c65c22e5
commit 0e522e54a9
7 changed files with 363 additions and 65 deletions

View file

@ -37,7 +37,7 @@ CREATE TABLE IF NOT EXISTS projects (
obsidian_vault_path TEXT,
worktrees_enabled INTEGER DEFAULT 0,
auto_test_enabled INTEGER DEFAULT 0,
test_command TEXT DEFAULT 'make test',
test_command TEXT DEFAULT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
);
@ -696,10 +696,10 @@ def _migrate(conn: sqlite3.Connection):
""")
conn.commit()
# Add test_command column to projects (KIN-ARCH-008)
# Add test_command column to projects (KIN-ARCH-008); NULL = auto-detect (KIN-101)
projects_cols = {row["name"] for row in conn.execute("PRAGMA table_info(projects)")}
if "test_command" not in projects_cols:
conn.execute("ALTER TABLE projects ADD COLUMN test_command TEXT DEFAULT 'make test'")
conn.execute("ALTER TABLE projects ADD COLUMN test_command TEXT DEFAULT NULL")
conn.commit()
# Rename legacy 'auto' → 'auto_complete' (KIN-063)