Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160509160659-mail-server.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.changeColumn(
6       'mail_servers_in',
7       'state', {
8         type: Sequelize.ENUM('CONNECTING', 'CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN')
9       }
10     );
11     queryInterface.changeColumn(
12       'mail_servers_out',
13       'state', {
14         type: Sequelize.ENUM('CONNECTING', 'CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN')
15       }
16     );
17   },
18
19   down: function(queryInterface, Sequelize) {
20     queryInterface.changeColumn(
21       'mail_servers_in',
22       'state', {
23         type: Sequelize.ENUM('CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN')
24       }
25     );
26     queryInterface.changeColumn(
27       'mail_servers_out',
28       'state', {
29         type: Sequelize.ENUM('CONNECTED', 'DISCONNECTED', 'ERROR', 'UNKNOWN')
30       }
31     );
32   }
33 };