Skip to content

Commit

Permalink
Fix migration to properly set nullability and default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaviask committed Aug 26, 2024
1 parent e7b87b8 commit 820c42d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ module.exports = {
await queryInterface.addColumn(
'Addresses',
'is_banned',
Sequelize.BOOLEAN,
{ transaction, allowNull: false, defaultValue: false },
{
type: Sequelize.BOOLEAN,
allowNull: false,
defaultValue: false,
},
{ transaction },
);
await queryInterface.sequelize.query(
`
Expand Down

0 comments on commit 820c42d

Please sign in to comment.