1 import * as Sequelize from 'sequelize'
3 async function up (utils: {
4 transaction: Sequelize.Transaction,
5 queryInterface: Sequelize.QueryInterface,
6 sequelize: Sequelize.Sequelize
9 const toReplace = ':443'
11 const replacer = column => `replace("${column}", '${toReplace}', '${by}')`
13 const query = `UPDATE video SET url = ${replacer('url')}`
14 await utils.sequelize.query(query)
18 function down (options) {
19 throw new Error('Not implemented.')