Artifact Content
Not logged in

Artifact 835be397cbaf04b66231b8d8787225511b693baf:


const Sequelize = require('sequelize')

module.exports = {
  up: sequelize => {
    return sequelize.queryInterface.addColumn('Peers', 'destination', Sequelize.STRING)
      .then(() => sequelize.query('update "Peers" set destination = floor(random()*1000000)'))
  },
  down: sequelize => {
    return sequelize.queryInterface.removeColumn('Payments', 'destination')
  }
}