sequelize migration set default value

Solutions on MaxInterview for sequelize migration set default value by the best coders in the world

showing results for - "sequelize migration set default value"
Glenys
01 Nov 2019
1queryInterface.addColumn('OrderBackups', 'my_column', {
2  type: Sequelize.INTEGER,
3  defaultValue: 0
4})
Antonio
09 Apr 2017
1await queryInterface.addColumn('my_list', 'is_deleted', {
2  type: Sequelize.BOOLEAN,
3  defaultValue: false
4});
similar questions
queries leading to this page
sequelize migration set default value