Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160622100722-users.js
index 020163e..1e9f8c8 100644 (file)
@@ -1 +1,17 @@
-var _0x4158=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x75\x73\x65\x72\x73","\x70\x68\x6F\x6E\x65\x42\x61\x72\x45\x78\x70\x69\x72\x65\x73","\x63\x68\x61\x6E\x67\x65\x43\x6F\x6C\x75\x6D\x6E"];_0x4158[0];module[_0x4158[1]]= {up:function(_0xfaa9x1,_0xfaa9x2){_0xfaa9x1[_0x4158[4]](_0x4158[2],_0x4158[3],{type:_0xfaa9x2.INTEGER(5),defaultValue:120})},down:function(_0xfaa9x1,_0xfaa9x2){_0xfaa9x1[_0x4158[4]](_0x4158[2],_0x4158[3],{type:_0xfaa9x2.INTEGER(5),defaultValue:3600})}}
\ No newline at end of file
+'use strict';
+
+module.exports = {
+  up: function(queryInterface, Sequelize) {
+    queryInterface.changeColumn('users', 'phoneBarExpires', {
+      type: Sequelize.INTEGER(5),
+      defaultValue: 120
+    });
+  },
+
+  down: function(queryInterface, Sequelize) {
+    queryInterface.changeColumn('users', 'phoneBarExpires', {
+      type: Sequelize.INTEGER(5),
+      defaultValue: 3600
+    });
+  }
+};