"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.down = exports.up = void 0;
const tslib_1 = require("tslib");
const Sequelize = tslib_1.__importStar(require("sequelize"));
function up(utils) {
    return tslib_1.__awaiter(this, void 0, void 0, function* () {
        yield utils.queryInterface.addColumn('videoLive', 'latencyMode', {
            type: Sequelize.INTEGER,
            defaultValue: null,
            allowNull: true
        }, { transaction: utils.transaction });
        {
            const query = `UPDATE "videoLive" SET "latencyMode" = ${1}`;
            yield utils.sequelize.query(query, { type: Sequelize.QueryTypes.UPDATE, transaction: utils.transaction });
        }
        yield utils.queryInterface.changeColumn('videoLive', 'latencyMode', {
            type: Sequelize.INTEGER,
            defaultValue: null,
            allowNull: false
        }, { transaction: utils.transaction });
    });
}
exports.up = up;
function down() {
    throw new Error('Not implemented.');
}
exports.down = down;
//# sourceMappingURL=0690-live-latency-mode.js.map