"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get down () {
        return down;
    },
    get up () {
        return up;
    }
});
async function up(query) {
    await query.sequelize.query(`UPDATE settings SET key = 'features.invoicing.enabled' WHERE key = 'features.enableInvoicing';`);
    /**
   * Have you handled the state of the sync_lookup table after running this migration?
   * You can add the following query to rebuild the lookup table for the tables you have modified:
   */ await query.sequelize.query(`SELECT flag_lookup_model_to_rebuild('settings');`);
}
async function down(query) {
    await query.sequelize.query(`UPDATE settings SET key = 'features.enableInvoicing' WHERE key = 'features.invoicing.enabled';`);
    await query.sequelize.query(`SELECT flag_lookup_model_to_rebuild('settings');`);
}

//# sourceMappingURL=1764852495523-RenameEnableInvoicingSetting.js.map