X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fmigrations%2F20160429190622-chat-rooms.js;h=d07ba8f998c535e18f8ca04b409ce6ce8cd8f49b;hb=9c67eff8b98f3784e4fa1b031a29d4590547e055;hp=7cce948cf75da7755e94760bbb4e6e4b1a0807f3;hpb=2c028dc81dced7b7435dd16e21e89e4178a6b18c;p=motion.git diff --git a/server/migrations/20160429190622-chat-rooms.js b/server/migrations/20160429190622-chat-rooms.js index 7cce948..d07ba8f 100644 --- a/server/migrations/20160429190622-chat-rooms.js +++ b/server/migrations/20160429190622-chat-rooms.js @@ -1 +1,21 @@ -var _0xa7b3=["\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","\x74\x79\x70\x65","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x65\x78\x74\x65\x72\x6E\x61\x6C","\x67\x72\x6F\x75\x70","\x63\x68\x61\x6E\x67\x65\x43\x6F\x6C\x75\x6D\x6E"];_0xa7b3[0];module[_0xa7b3[1]]= {up:function(_0x50fbx1,_0x50fbx2){_0x50fbx1[_0xa7b3[7]](_0xa7b3[2],_0xa7b3[3],{type:_0x50fbx2.ENUM(_0xa7b3[4],_0xa7b3[5],_0xa7b3[6])})},down:function(_0x50fbx1,_0x50fbx2){_0x50fbx1[_0xa7b3[7]](_0xa7b3[2],_0xa7b3[3],{type:_0x50fbx2.ENUM(_0xa7b3[4],_0xa7b3[5])})}} \ No newline at end of file +'use strict'; + +module.exports = { + up: function(queryInterface, Sequelize) { + queryInterface.changeColumn( + 'chat_rooms', + 'type', { + type: Sequelize.ENUM('internal', 'external', 'group') + } + ); + }, + + down: function(queryInterface, Sequelize) { + queryInterface.changeColumn( + 'chat_rooms', + 'type', { + type: Sequelize.ENUM('internal', 'external') + } + ); + } +};