Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160429151542-trunks.js
index 1300f91..23f32b1 100644 (file)
@@ -1 +1,16 @@
-var _0x85f7=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x74\x6F\x6F\x6C\x73\x5F\x74\x72\x75\x6E\x6B\x73","\x61\x63\x74\x69\x76\x65","\x42\x4F\x4F\x4C\x45\x41\x4E","\x61\x64\x64\x43\x6F\x6C\x75\x6D\x6E","\x73\x74\x61\x74\x75\x73","\x72\x65\x6D\x6F\x76\x65\x43\x6F\x6C\x75\x6D\x6E"];_0x85f7[0];module[_0x85f7[1]]={up:function(_0xf913x1,_0xf913x2){_0xf913x1[_0x85f7[5]](_0x85f7[2],_0x85f7[3],{type:_0xf913x2[_0x85f7[4]],defaultValue:true});_0xf913x1[_0x85f7[5]](_0x85f7[2],_0x85f7[6],_0xf913x2.STRING)},down:function(_0xf913x1,_0xf913x2){_0xf913x1[_0x85f7[7]](_0x85f7[2],_0x85f7[3]);_0xf913x1[_0x85f7[7]](_0x85f7[2],_0x85f7[6])}}
\ No newline at end of file
+'use strict';
+
+module.exports = {
+  up: function(queryInterface, Sequelize) {
+    queryInterface.addColumn('tools_trunks', 'active', {
+      type: Sequelize.BOOLEAN,
+      defaultValue: true
+    });
+    queryInterface.addColumn('tools_trunks', 'status', Sequelize.STRING);
+  },
+
+  down: function(queryInterface, Sequelize) {
+    queryInterface.removeColumn('tools_trunks', 'active');
+    queryInterface.removeColumn('tools_trunks', 'status');
+  }
+};