Built motion from commit c56b56e.|0.0.125
[motion.git] / server / migrations / 20160506111910-report_square_details.js
index 1491ff9..825a1ba 100644 (file)
@@ -1 +1,13 @@
-var _0xc908=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x65\x78\x70\x6F\x72\x74\x73","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65\x5F\x64\x65\x74\x61\x69\x6C\x73","\x70\x72\x6F\x6A\x65\x63\x74\x4E\x61\x6D\x65","\x70\x72\x6F\x6A\x65\x63\x74\x5F\x6E\x61\x6D\x65","\x72\x65\x6E\x61\x6D\x65\x43\x6F\x6C\x75\x6D\x6E","\x72\x65\x70\x6F\x72\x74\x5F\x73\x71\x75\x61\x72\x65\x5F\x64\x65\x74\x61\x69\x6C\x73\x5F\x68\x69\x73\x74\x6F\x72\x79"];_0xc908[0];module[_0xc908[1]]={up:function(_0xbb1dx1,_0xbb1dx2){_0xbb1dx1[_0xc908[5]](_0xc908[2],_0xc908[3],_0xc908[4]);_0xbb1dx1[_0xc908[5]](_0xc908[6],_0xc908[3],_0xc908[4])},down:function(_0xbb1dx1,_0xbb1dx2){_0xbb1dx1[_0xc908[5]](_0xc908[2],_0xc908[4],_0xc908[3]);_0xbb1dx1[_0xc908[5]](_0xc908[6],_0xc908[4],_0xc908[3])}}
\ No newline at end of file
+'use strict';
+
+module.exports = {
+  up: function(queryInterface, Sequelize) {
+    queryInterface.renameColumn('report_square_details', 'projectName', 'project_name');
+    queryInterface.renameColumn('report_square_details_history', 'projectName', 'project_name');
+  },
+
+  down: function(queryInterface, Sequelize) {
+    queryInterface.renameColumn('report_square_details', 'project_name', 'projectName');
+    queryInterface.renameColumn('report_square_details_history', 'project_name', 'projectName');
+  }
+};