Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160512131153-chat_rooms.js
index 8497049..5164ff4 100644 (file)
@@ -1 +1,17 @@
-var _0x1c06=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x63\x68\x61\x74\x5F\x72\x6F\x6F\x6D\x73","\x73\x74\x61\x74\x75\x73","\x4E\x45\x57","\x4F\x50\x45\x4E","\x43\x4C\x4F\x53\x45\x44","\x41\x42\x41\x4E\x44\x4F\x4E","\x55\x4E\x4D\x41\x4E\x41\x47\x45\x44","\x63\x68\x61\x6E\x67\x65\x43\x6F\x6C\x75\x6D\x6E"];_0x1c06[0];module[_0x1c06[1]]= {up:function(_0x9b4dx1,_0x9b4dx2){return _0x9b4dx1[_0x1c06[9]](_0x1c06[2],_0x1c06[3],{type:_0x9b4dx2.ENUM(_0x1c06[4],_0x1c06[5],_0x1c06[6],_0x1c06[7],_0x1c06[8]),defaultValue:_0x1c06[4]})},down:function(_0x9b4dx1,_0x9b4dx2){return _0x9b4dx1[_0x1c06[9]](_0x1c06[2],_0x1c06[3],{type:_0x9b4dx2.ENUM(_0x1c06[5],_0x1c06[6],_0x1c06[7],_0x1c06[8]),defaultValue:_0x1c06[5]})}}
\ No newline at end of file
+'use strict';
+
+module.exports = {
+  up: function(queryInterface, Sequelize) {
+    return queryInterface.changeColumn('chat_rooms', 'status', {
+      type: Sequelize.ENUM('NEW', 'OPEN', 'CLOSED', 'ABANDON', 'UNMANAGED'),
+      defaultValue: 'NEW'
+    });
+  },
+
+  down: function(queryInterface, Sequelize) {
+    return queryInterface.changeColumn('chat_rooms', 'status', {
+      type: Sequelize.ENUM('OPEN', 'CLOSED', 'ABANDON', 'UNMANAGED'),
+      defaultValue: 'OPEN'
+    });
+  }
+};