Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160609104619-report-call.js
index 478dd3c..b6851db 100644 (file)
@@ -1 +1,21 @@
-var _0xf92a=["\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","\x74\x69\x67\x65\x72\x64\x69\x61\x6C","\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"];_0xf92a[0];module[_0xf92a[1]]= {up:function(_0xc024x1,_0xc024x2){_0xc024x1[_0xf92a[10]](_0xf92a[2],_0xf92a[3],{type:_0xc024x2.ENUM(_0xf92a[4],_0xf92a[5],_0xf92a[6],_0xf92a[7],_0xf92a[8],_0xf92a[9])});_0xc024x1[_0xf92a[10]](_0xf92a[11],_0xf92a[3],{type:_0xc024x2.ENUM(_0xf92a[4],_0xf92a[5],_0xf92a[6],_0xf92a[7],_0xf92a[8],_0xf92a[9])})},down:function(_0xc024x1,_0xc024x2){_0xc024x1[_0xf92a[10]](_0xf92a[2],_0xf92a[3],{type:_0xc024x2.ENUM(_0xf92a[4],_0xf92a[5],_0xf92a[6],_0xf92a[7],_0xf92a[8])});_0xc024x1[_0xf92a[10]](_0xf92a[11],_0xf92a[3],{type:_0xc024x2.ENUM(_0xf92a[4],_0xf92a[5],_0xf92a[6],_0xf92a[7],_0xf92a[8])})}}
\ 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', 'tigerdial')
+    });
+    queryInterface.changeColumn('report_call_history', 'type', {
+      type: Sequelize.ENUM('inbound', 'internal', 'outbound', 'inbound-fax', 'outbound-fax', 'tigerdial')
+    });
+  },
+
+  down: 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')
+    });
+  }
+};