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('setup_complete')) {
        db.exec('ALTER TABLE applications ADD COLUMN setup_complete INTEGER NOT NULL DEFAULT 0');
    }
}
export async function down(_params) {
    // SQLite doesn't support DROP COLUMN before 3.35.0; leave column in place.
}
