/**
 * Migration 044: Add previous_lifecycle column to features table.
 *
 * Stores the lifecycle state prior to archiving so it can be restored
 * when a feature is unarchived. Nullable TEXT — only populated when
 * the feature lifecycle is Archived.
 */
export async function up({ context: db }) {
    const columns = db.pragma('table_info(features)');
    if (!columns.some((c) => c.name === 'previous_lifecycle')) {
        db.exec('ALTER TABLE features ADD COLUMN previous_lifecycle TEXT');
    }
}
export async function down({ context: db }) {
    void db;
}
