hedgedoc/old_src/lib/migrations/20180525153000-user-add-delete-token.js

14 lines
345 B
JavaScript
Raw Normal View History

'use strict'
module.exports = {
up: async function (queryInterface, Sequelize) {
return queryInterface.addColumn('Users', 'deleteToken', {
type: Sequelize.UUID,
defaultValue: Sequelize.UUIDV4
})
},
down: async function (queryInterface, Sequelize) {
return queryInterface.removeColumn('Users', 'deleteToken')
}
}