Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160515123238-report_call.js
index cde47cc..ffd665d 100644 (file)
@@ -1 +1,21 @@
-var _0x321b=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C","\x74\x79\x70\x65","\x69\x6E\x62\x6F\x75\x6E\x64","\x69\x6E\x74\x65\x72\x6E\x61\x6C","\x6F\x75\x74\x62\x6F\x75\x6E\x64","\x69\x6E\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x6F\x75\x74\x62\x6F\x75\x6E\x64\x2D\x66\x61\x78","\x63\x68\x61\x6E\x67\x65\x43\x6F\x6C\x75\x6D\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x63\x61\x6C\x6C\x5F\x68\x69\x73\x74\x6F\x72\x79"];_0x321b[0];module[_0x321b[1]]={up:function(_0x1ca8x1,_0x1ca8x2){_0x1ca8x1[_0x321b[9]](_0x321b[2],_0x321b[3],{type:_0x1ca8x2.ENUM(_0x321b[4],_0x321b[5],_0x321b[6],_0x321b[7],_0x321b[8])});_0x1ca8x1[_0x321b[9]](_0x321b[10],_0x321b[3],{type:_0x1ca8x2.ENUM(_0x321b[4],_0x321b[5],_0x321b[6],_0x321b[7],_0x321b[8])})},down:function(_0x1ca8x1,_0x1ca8x2){_0x1ca8x1[_0x321b[9]](_0x321b[2],_0x321b[3],{type:_0x1ca8x2.ENUM(_0x321b[4],_0x321b[5],_0x321b[6])});_0x1ca8x1[_0x321b[9]](_0x321b[10],_0x321b[3],{type:_0x1ca8x2.ENUM(_0x321b[4],_0x321b[5],_0x321b[6])})}}
\ No newline at end of file
+'use strict';
+
+module.exports = {
+  up: function(queryInterface, Sequelize) {
+    queryInterface.changeColumn('report_call', 'type', {
+      type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax')
+    });
+    queryInterface.changeColumn('report_call_history', 'type', {
+      type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax')
+    });
+  },
+
+  down: function(queryInterface, Sequelize) {
+    queryInterface.changeColumn('report_call', 'type', {
+      type: Sequelize.ENUM('inbound', 'internal', 'outbound')
+    });
+    queryInterface.changeColumn('report_call_history', 'type', {
+      type: Sequelize.ENUM('inbound', 'internal', 'outbound')
+    });
+  }
+};