a8045e564eb0083df1f8f208ab3b17df467fb7e8
[motion.git] / server / migrations / 20160413120157-chat-rooms.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.changeColumn(
6       'chat_rooms',
7       'status', {
8         type: Sequelize.ENUM('OPEN', 'CLOSED', 'ABANDON', 'UNMANAGED'),
9         defaultValue: 'OPEN'
10       }
11     );
12   },
13
14   down: function(queryInterface, Sequelize) {
15     queryInterface.changeColumn(
16       'chat_rooms',
17       'status', {
18         type: Sequelize.ENUM('OPEN', 'CLOSED', 'ABANDON'),
19         defaultValue: 'OPEN'
20       }
21     );
22   }
23 };