1 import * as Sequelize from 'sequelize'
2 import { VideoAbuseState } from '../../../shared/models/videos'
4 async function up (utils: {
5 transaction: Sequelize.Transaction
6 queryInterface: Sequelize.QueryInterface
7 sequelize: Sequelize.Sequelize
11 type: Sequelize.INTEGER,
15 await utils.queryInterface.addColumn('videoAbuse', 'state', data)
19 const query = 'UPDATE "videoAbuse" SET "state" = ' + VideoAbuseState.PENDING
20 await utils.sequelize.query(query)
25 type: Sequelize.INTEGER,
29 await utils.queryInterface.changeColumn('videoAbuse', 'state', data)
34 type: Sequelize.STRING(300),
38 await utils.queryInterface.addColumn('videoAbuse', 'moderationComment', data)
42 function down (options) {
43 throw new Error('Not implemented.')