mirror of https://github.com/Chocobozzz/PeerTube
20 lines
488 B
JavaScript
20 lines
488 B
JavaScript
|
'use strict'
|
||
|
|
||
|
// utils = { transaction, queryInterface, sequelize, Sequelize }
|
||
|
exports.up = function (utils, finalCallback) {
|
||
|
const q = utils.queryInterface
|
||
|
const Sequelize = utils.Sequelize
|
||
|
|
||
|
const data = {
|
||
|
type: Sequelize.BOOLEAN,
|
||
|
allowNull: false,
|
||
|
defaultValue: false
|
||
|
}
|
||
|
|
||
|
q.addColumn('Users', 'displayNSFW', data, { transaction: utils.transaction }).asCallback(finalCallback)
|
||
|
}
|
||
|
|
||
|
exports.down = function (options, callback) {
|
||
|
throw new Error('Not implemented.')
|
||
|
}
|