Like this: return Promise.all([
queryInterface.addColumn(
'users', // table name
'verifier', // new field name
{
type: Sequelize.STRING,
allowNull: true,
after: 'manager_bonus',
}
),
]);
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How can we add a column after specific column?
Like this:
return Promise.all([
queryInterface.addColumn(
'users', // table name
'verifier', // new field name
{
type: Sequelize.STRING,
allowNull: true,
after: 'manager_bonus',
}
),
]);