DEV Community

Discussion on: How to Add New Fields to Existing Sequelize Migration

Collapse
 
guryashzone profile image
Guryash Singh

How can we add a column after specific column?

Collapse
 
dmikester1 profile image
Mike Dodge

Like this:
return Promise.all([
queryInterface.addColumn(
'users', // table name
'verifier', // new field name
{
type: Sequelize.STRING,
allowNull: true,
after: 'manager_bonus',
}
),
]);