2018-02-15 08:46:26 -05: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-02-15 08:46:26 -05:00
|
|
|
sequelize: Sequelize.Sequelize
|
|
|
|
}): Promise<void> {
|
|
|
|
{
|
|
|
|
const data = {
|
2018-10-19 02:54:01 -04:00
|
|
|
type: Sequelize.STRING(500),
|
2018-02-15 08:46:26 -05:00
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.addColumn('video', 'support', data)
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const data = {
|
2018-10-19 02:54:01 -04:00
|
|
|
type: Sequelize.STRING(500),
|
2018-02-15 08:46:26 -05:00
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.addColumn('videoChannel', 'support', data)
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const data = {
|
2018-10-19 02:54:01 -04:00
|
|
|
type: Sequelize.STRING(250),
|
2018-02-15 08:46:26 -05:00
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.addColumn('account', 'description', data)
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const data = {
|
2018-10-19 02:54:01 -04:00
|
|
|
type: Sequelize.STRING(10000),
|
2018-02-15 08:46:26 -05:00
|
|
|
allowNull: true,
|
|
|
|
defaultValue: null
|
|
|
|
}
|
|
|
|
await utils.queryInterface.changeColumn('video', 'description', data)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function down (options) {
|
|
|
|
throw new Error('Not implemented.')
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
up,
|
|
|
|
down
|
|
|
|
}
|