Built motion from commit 1333b3551.|1.0.38
[motion.git] / server / migrations / 20160609104619-report-call.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.changeColumn('report_call', 'type', {
6       type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax', 'tigerdial')
7     });
8     queryInterface.changeColumn('report_call_history', 'type', {
9       type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax', 'tigerdial')
10     });
11   },
12
13   down: function(queryInterface, Sequelize) {
14     queryInterface.changeColumn('report_call', 'type', {
15       type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax')
16     });
17     queryInterface.changeColumn('report_call_history', 'type', {
18       type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax')
19     });
20   }
21 };