HackMD/lib/migrations/20160515114000-user-add-tokens.js

13 lines
392 B
JavaScript
Raw Normal View History

'use strict'
2016-05-15 04:20:42 +00:00
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.addColumn('Users', 'accessToken', Sequelize.STRING)
queryInterface.addColumn('Users', 'refreshToken', Sequelize.STRING)
},
2016-05-15 04:20:42 +00:00
down: function (queryInterface, Sequelize) {
queryInterface.removeColumn('Users', 'accessToken')
queryInterface.removeColumn('Users', 'refreshToken')
}
}