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

15 lines
454 B
JavaScript
Raw Normal View History

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