PeerTube/server/initializers/migrations/0005-email-pod.js

21 lines
448 B
JavaScript

/*
This is just an example.
*/
// utils = { transaction, queryInterface }
exports.up = function (utils, callback) {
const q = utils.queryInterface
const Sequelize = utils.Sequelize
const data = {
type: Sequelize.STRING(400),
allowNull: false
}
q.addColumn('Pods', 'email', data, { transaction: utils.transaction }).asCallback(callback)
}
exports.down = function (options, callback) {
throw new Error('Not implemented.')
}