sequelize migration add default value

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

showing results for - "sequelize migration add default value"
Luka
27 Jan 2018
1queryInterface.addColumn('OrderBackups', 'my_column', {
2  type: Sequelize.INTEGER,
3  defaultValue: 0
4})
Giacomo
20 Sep 2016
1queryInterface.addColumn('My_table', 'my_column', {
2  type: Sequelize.INTEGER,
3  defaultValue: 0
4})
Giuseppe
02 Apr 2018
1await queryInterface.addColumn('my_list', 'is_deleted', {
2  type: Sequelize.BOOLEAN,
3  defaultValue: false
4});
similar questions
queries leading to this page
sequelize migration add default value