Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160526163744-chat_websites.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.addColumn('chat_websites', 'agents_busy', {
6       type: Sequelize.STRING,
7       defaultValue: 'In this moment all agents are busy. Try again!'
8     });
9     queryInterface.addColumn('chat_websites', 'name_title', {
10       type: Sequelize.STRING,
11       defaultValue: 'Name'
12     });
13     queryInterface.addColumn('chat_websites', 'email_title', {
14       type: Sequelize.STRING,
15       defaultValue: 'Email address'
16     });
17     queryInterface.addColumn('chat_websites', 'message_title', {
18       type: Sequelize.STRING,
19       defaultValue: 'Message'
20     });
21   },
22
23   down: function(queryInterface, Sequelize) {
24     queryInterface.removeColumn('chat_websites', 'agents_busy');
25     queryInterface.removeColumn('chat_websites', 'name_title');
26     queryInterface.removeColumn('chat_websites', 'email_title');
27     queryInterface.removeColumn('chat_websites', 'message_title');
28   }
29 };