summaryrefslogblamecommitdiffstats
path: root/server/migrations/20190415164900-add-wakeonlan-event.js
blob: 1c4b332a21e833f8304e938b944cf5261c43415a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                             
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.addColumn('events', 'wakeonlan', {
      type: Sequelize.BOOLEAN,
      defaultValue: false,
      allowNull: false
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.removeColumn('events', 'wakeonlan')
  }
}