Built motion from commit 95c3d5ad5.|1.0.29
[motion.git] / server / migrations / 20171019084200-users.js
diff --git a/server/migrations/20171019084200-users.js b/server/migrations/20171019084200-users.js
new file mode 100644 (file)
index 0000000..c81a1a9
--- /dev/null
@@ -0,0 +1,13 @@
+'use strict';
+
+module.exports = {
+  up: function (queryInterface, Sequelize) {
+    return queryInterface.sequelize.query('ALTER TABLE users CONVERT TO CHARACTER SET utf8 COLLATE utf8_bin;')
+      .catch(function(err) {
+        console.error(err);
+      });
+  },
+
+  down: function (queryInterface, Sequelize) {
+  }
+};