gancio-upstream/server/migrations/20190728214848-add_displayname.js

27 lines
598 B
JavaScript
Raw Normal View History

2019-07-29 01:27:47 +02:00
'use strict';
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.addColumn('users', 'display_name', {
type: Sequelize.STRING
})
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/
},
down: (queryInterface, Sequelize) => {
/*
Add reverting commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.dropTable('users');
*/
}
};