sequelize migration default value

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "sequelize migration default value"
Fynn
09 Jul 2017
1queryInterface.addColumn('OrderBackups', 'my_column', {
2  type: Sequelize.INTEGER,
3  defaultValue: 0
4})
Edoardo
19 Nov 2018
1queryInterface.addColumn('My_table', 'my_column', {
2  type: Sequelize.INTEGER,
3  defaultValue: 0
4})
Laura
27 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 default value