1 import * as Sequelize from 'sequelize'
2 import * as Promise from 'bluebird'
3 import { Migration } from '../../models/migrations'
6 transaction: Sequelize.Transaction,
7 queryInterface: Sequelize.QueryInterface,
8 sequelize: Sequelize.Sequelize
10 const q = utils.queryInterface
13 type: Sequelize.STRING(400),
18 return q.addColumn('Pods', 'email', data)
20 const query = 'UPDATE "Pods" SET "email" = \'dummy@example.com\''
21 return utils.sequelize.query(query, { transaction: utils.transaction })
24 data.defaultValue = null
26 return q.changeColumn('Pods', 'email', data)
30 function down (options) {
31 throw new Error('Not implemented.')