Built motion from commit 95c3d5ad5.|1.0.29
[motion.git] / server / migrations / 20171019090019-voicemail.js
1 'use strict';
2
3 module.exports = {
4   up: function (queryInterface, Sequelize) {
5     queryInterface.changeColumn('voice_voicemail', 'attach', {
6       type: Sequelize.ENUM('yes', 'no'),
7       defaultValue: 'no',
8       allowNull: false
9     });
10   },
11
12   down: function (queryInterface, Sequelize) {
13     /*
14       Add reverting commands here.
15       Return a promise to correctly handle asynchronicity.
16
17       Example:
18       return queryInterface.dropTable('users');
19     */
20   }
21 };