2017-02-21 15:35:59 -05:00
|
|
|
// utils = { transaction, queryInterface, sequelize, Sequelize }
|
2017-05-15 16:22:03 -04:00
|
|
|
function up (utils, finalCallback) {
|
2017-02-21 15:35:59 -05:00
|
|
|
const q = utils.queryInterface
|
|
|
|
const Sequelize = utils.Sequelize
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
type: Sequelize.INTEGER,
|
|
|
|
allowNull: false,
|
|
|
|
defaultValue: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
q.addColumn('Videos', 'views', data, { transaction: utils.transaction }).asCallback(finalCallback)
|
|
|
|
}
|
|
|
|
|
2017-05-15 16:22:03 -04:00
|
|
|
function down (options, callback) {
|
2017-02-21 15:35:59 -05:00
|
|
|
throw new Error('Not implemented.')
|
|
|
|
}
|
2017-05-15 16:22:03 -04:00
|
|
|
|
|
|
|
export {
|
|
|
|
up,
|
|
|
|
down
|
|
|
|
}
|