summaryrefslogtreecommitdiffstats
path: root/server/migrations/20181008151633-create-registrationhook.js
blob: 59692c5f29c8ec5ad542c16bda514f41196bfa32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('registrationhooks', {
      id: {
        primaryKey: true,
        allowNull: false,
        type: Sequelize.INTEGER,
      },
      sortvalue: Sequelize.INTEGER,
      type: Sequelize.STRING,
      script: {
        allowNull: true,
        type: Sequelize.BLOB
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('registrationhook')
  }
}