summaryrefslogblamecommitdiffstats
path: root/server/migrations/20190307051633-create-conflict_x_object.js
blob: bead43faae7c6196472c3e501c76d38b5fd46ad9 (plain) (tree)
























                                                            
'use strict'
module.exports = {
  up: (queryInterface, Sequelize) => {
    return queryInterface.createTable('conflict_x_object', {
      id: {
        allowNull: false,
        autoIncrement: true,
        primaryKey: true,
        type: Sequelize.INTEGER
      },
      conflictId: {
        type: Sequelize.INTEGER
      },
      objectType: {
        type: Sequelize.STRING
      },
      objectId: {
        type: Sequelize.INTEGER
      }
    })
  },
  down: (queryInterface, Sequelize) => {
    return queryInterface.dropTable('conflict_x_object')
  }
}