Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160515123238-report_call.js
index d9f8b3b..ffd665d 100644 (file)
@@ -1 +1,21 @@
-var _0x9075=["\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"];_0x9075[0];module[_0x9075[1]]= {up:function(_0xe6dbx1,_0xe6dbx2){_0xe6dbx1[_0x9075[9]](_0x9075[2],_0x9075[3],{type:_0xe6dbx2.ENUM(_0x9075[4],_0x9075[5],_0x9075[6],_0x9075[7],_0x9075[8])});_0xe6dbx1[_0x9075[9]](_0x9075[10],_0x9075[3],{type:_0xe6dbx2.ENUM(_0x9075[4],_0x9075[5],_0x9075[6],_0x9075[7],_0x9075[8])})},down:function(_0xe6dbx1,_0xe6dbx2){_0xe6dbx1[_0x9075[9]](_0x9075[2],_0x9075[3],{type:_0xe6dbx2.ENUM(_0x9075[4],_0x9075[5],_0x9075[6])});_0xe6dbx1[_0x9075[9]](_0x9075[10],_0x9075[3],{type:_0xe6dbx2.ENUM(_0x9075[4],_0x9075[5],_0x9075[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')
+    });
+  }
+};