summaryrefslogtreecommitdiff
path: root/lib/migrations/20161201050312-support-email-signin.js
blob: d33225f1090f9232fc1d83bdfd7d0d64fdea12cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
module.exports = {
  up: function (queryInterface, Sequelize) {
    return queryInterface.addColumn('Users', 'email', Sequelize.TEXT).then(function () {
      return queryInterface.addColumn('Users', 'password', Sequelize.TEXT)
    })
  },

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