export async function up({ context: db }) {
    const columns = db.pragma('table_info(applications)');
    const columnNames = new Set(columns.map((c) => c.name));
    if (!columnNames.has('agent_session_id')) {
        db.exec('ALTER TABLE applications ADD COLUMN agent_session_id TEXT');
    }
}
export async function down(_params) {
    // SQLite doesn't support DROP COLUMN before 3.35.0; leave column in place.
}
