Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160512131153-chat_rooms.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     return queryInterface.changeColumn('chat_rooms', 'status', {
6       type: Sequelize.ENUM('NEW', 'OPEN', 'CLOSED', 'ABANDON', 'UNMANAGED'),
7       defaultValue: 'NEW'
8     });
9   },
10
11   down: function(queryInterface, Sequelize) {
12     return queryInterface.changeColumn('chat_rooms', 'status', {
13       type: Sequelize.ENUM('OPEN', 'CLOSED', 'ABANDON', 'UNMANAGED'),
14       defaultValue: 'OPEN'
15     });
16   }
17 };