2018-05-09 07:32:44 -04:00
|
|
|
import * as Sequelize from 'sequelize'
|
|
|
|
|
|
|
|
async function up (utils: {
|
2020-01-31 10:56:52 -05:00
|
|
|
transaction: Sequelize.Transaction
|
|
|
|
queryInterface: Sequelize.QueryInterface
|
2018-05-09 07:32:44 -04:00
|
|
|
sequelize: Sequelize.Sequelize
|
|
|
|
}): Promise<void> {
|
|
|
|
{
|
|
|
|
const data = {
|
|
|
|
type: Sequelize.STRING(500),
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.changeColumn('video', 'support', data)
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const data = {
|
|
|
|
type: Sequelize.STRING(500),
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.changeColumn('videoChannel', 'support', data)
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const data = {
|
|
|
|
type: Sequelize.STRING(500),
|
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.changeColumn('videoChannel', 'description', data)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function down (options) {
|
|
|
|
throw new Error('Not implemented.')
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
up,
|
|
|
|
down
|
|
|
|
}
|