Built motion from commit 450cc5d.|0.0.139
[motion.git] / server / migrations / 20160825120817-licenses.js
1 'use strict';
2
3 module.exports = {
4   up: function(queryInterface, Sequelize) {
5     queryInterface.renameColumn('license', 'token', 'data1');
6     queryInterface.addColumn('license', 'data2', Sequelize.STRING);
7   },
8
9   down: function(queryInterface, Sequelize) {
10     queryInterface.renameColumn('license', 'data1', 'token');
11     queryInterface.removeColumn('license', 'data2');
12   }
13 };