mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-30 00:58:45 -05:00
66fc817ad4
Up and Down method must return a Promise. breaking changes: docker-hackmd cannot initialize, because db:migration will fail
14 lines
476 B
JavaScript
14 lines
476 B
JavaScript
'use strict'
|
|
module.exports = {
|
|
up: function (queryInterface, Sequelize) {
|
|
return queryInterface.addColumn('Users', 'accessToken', Sequelize.STRING).then(function () {
|
|
return queryInterface.addColumn('Users', 'refreshToken', Sequelize.STRING)
|
|
})
|
|
},
|
|
|
|
down: function (queryInterface, Sequelize) {
|
|
return queryInterface.removeColumn('Users', 'accessToken').then(function () {
|
|
return queryInterface.removeColumn('Users', 'refreshToken')
|
|
})
|
|
}
|
|
}
|