1 import * as Sequelize from 'sequelize'
2 import { CONSTRAINTS_FIELDS } from '../constants'
3 import { PeerTubeDatabase } from '../database'
5 async function up (utils: {
6 transaction: Sequelize.Transaction,
7 queryInterface: Sequelize.QueryInterface,
8 sequelize: Sequelize.Sequelize,
14 type: Sequelize.INTEGER,
18 await utils.queryInterface.changeColumn('Videos', 'licence', data)
23 type: Sequelize.INTEGER,
27 await utils.queryInterface.changeColumn('Videos', 'category', data)
32 type: Sequelize.STRING(CONSTRAINTS_FIELDS.VIDEOS.DESCRIPTION.max),
36 await utils.queryInterface.changeColumn('Videos', 'description', data)
40 function down (options) {
41 throw new Error('Not implemented.')