Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sequelize migration default value

queryInterface.addColumn('OrderBackups', 'my_column', {
  type: Sequelize.INTEGER,
  defaultValue: 0
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sequelize #migration #default
ADD COMMENT
Topic
Name
5+5 =