/**
 * Migration 037: Add ci_watch_enabled column to settings table.
 *
 * Controls whether the CI watch/fix loop runs after pushing a PR.
 * Defaults to 1 (enabled).
 */
export async function up({ context: db }) {
    const columns = db.pragma('table_info(settings)');
    if (!columns.some((c) => c.name === 'ci_watch_enabled')) {
        db.exec('ALTER TABLE settings ADD COLUMN ci_watch_enabled INTEGER NOT NULL DEFAULT 1');
    }
}
export async function down({ context: db }) {
    void db;
}
