1 import * as Sequelize from 'sequelize'
3 async function up (utils: {
4 transaction: Sequelize.Transaction,
5 queryInterface: Sequelize.QueryInterface,
6 sequelize: Sequelize.Sequelize,
10 await utils.queryInterface.renameColumn('videoFile', 'extname', 'extname_old')
15 type: Sequelize.STRING,
20 await utils.queryInterface.addColumn('videoFile', 'extname', data)
24 const query = 'UPDATE "videoFile" SET "extname" = "extname_old"::text'
25 await utils.sequelize.query(query)
30 type: Sequelize.STRING,
34 await utils.queryInterface.changeColumn('videoFile', 'extname', data)
38 await utils.queryInterface.removeColumn('videoFile', 'extname_old')
42 function down (options) {
43 throw new Error('Not implemented.')