Built motion from commit 1333b3551.|1.0.38
[motion.git] / server / migrations / 20160705185118-openchannel_messages.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.addColumn('openchannel_messages', 'name', Sequelize.STRING);
6     queryInterface.addColumn('openchannel_messages', 'phone', Sequelize.STRING);
7     queryInterface.addColumn('openchannel_messages', 'email', Sequelize.STRING);
8   },
9
10   down: function(queryInterface, Sequelize) {
11     queryInterface.removeColumn('openchannel_messages', 'name');
12     queryInterface.removeColumn('openchannel_messages', 'phone');
13     queryInterface.removeColumn('openchannel_messages', 'email');
14
15   }
16 };