summaryrefslogtreecommitdiff
path: root/lib/migrations/20161201050312-support-email-signin.js
blob: b5aaf7771e85920a8c9b24a3587ac2aa5aa67e28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict';

module.exports = {
  up: function (queryInterface, Sequelize) {
    queryInterface.addColumn('Users', 'email', Sequelize.TEXT);
    queryInterface.addColumn('Users', 'password', Sequelize.TEXT);
  },

  down: function (queryInterface, Sequelize) {
    queryInterface.removeColumn('Users', 'email');
    queryInterface.removeColumn('Users', 'password');
  }
};