There is no documentation details about addColumn options, so I'm trying this:
queryInterface.addColumn('OrderBackups', 'my_column', Sequelize.INTEGER, { defaultValue: 0 })
and it does not work. ps: I'm using postgres
So syntax for this is
queryInterface.addColumn('OrderBackups', 'my_column', {
type: Sequelize.INTEGER,
defaultValue: 0
})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With