summaryrefslogblamecommitdiffstats
path: root/server/migrations/20181008151633-create-registrationhook.js
blob: 0a96f29f15c030334a67b53702ebf601a849bb75 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                            
                            
                         
                               
        





                                    











                                                       
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('registrationhooks', {
      id: {
        primaryKey: true,
        autoIncrement: true,
        allowNull: false,
        type: Sequelize.INTEGER
      },
      name: {
        type: Sequelize.STRING
      },
      description: {
        type: Sequelize.STRING(2048)
      },
      sortvalue: Sequelize.INTEGER,
      type: Sequelize.STRING,
      script: {
        allowNull: true,
        type: Sequelize.BLOB
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('registrationhook')
  }
}