Built motion from commit 2e74e5e.|0.0.138
[motion.git] / server / migrations / 20160825110511-users_trunks.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.changeColumn(
6       'tools_trunks',
7       'call_limit', {
8         type: Sequelize.INTEGER(11),
9         allowNull: true,
10         defaultValue: 1000,
11       }
12     );
13     queryInterface.changeColumn(
14       'users',
15       'call_limit', {
16         type: Sequelize.INTEGER(11),
17         allowNull: true,
18         defaultValue: 10,
19       }
20     );
21   },
22
23   down: function(queryInterface, Sequelize) {
24     queryInterface.changeColumn(
25       'tools_trunks',
26       'call_limit', {
27         type: Sequelize.INTEGER(11),
28         allowNull: true,
29         defaultValue: null,
30       }
31     );
32     queryInterface.changeColumn(
33       'users',
34       'call_limit', {
35         type: Sequelize.INTEGER(11),
36         allowNull: true,
37         defaultValue: null,
38       }
39     );
40   }
41 };