séquestre la valeur par défaut de la migration
queryInterface.addColumn('OrderBackups', 'my_column', {
type: Sequelize.INTEGER,
defaultValue: 0
})
DevPedrada
queryInterface.addColumn('OrderBackups', 'my_column', {
type: Sequelize.INTEGER,
defaultValue: 0
})
npx sequelize-cli migration:generate --name migration-skeleton
queryInterface.addColumn('My_table', 'my_column', {
type: Sequelize.INTEGER,
defaultValue: 0
})
await queryInterface.addColumn('my_list', 'is_deleted', {
type: Sequelize.BOOLEAN,
defaultValue: false
});