summaryrefslogtreecommitdiffstats
path: root/server/migrations/20181009162133-add-registrationState-client.js
blob: edd3b17f00661646a6bb58cbe2e07c788d572c52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.addColumn('clients', 'registrationState', {
      type: Sequelize.INTEGER,
      onDelete: 'SET NULL',
      references: {
        model: 'registrationhooks',
        key: 'id'
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.removeColumn('clients', 'registrationState')
  }
}