1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-29 07:39:36 +02:00

add default values for database migration purposes

This commit is contained in:
François Darveau 2021-06-27 16:16:46 -04:00
parent e8c1567bc5
commit a4b9887c68
2 changed files with 4 additions and 2 deletions

View file

@ -8,7 +8,8 @@ const Category = sequelize.define('Category', {
},
type: {
type: DataTypes.STRING,
allowNull: false
allowNull: false,
defaultValue: 'bookmark' // Default value for database migration only
},
isPinned: {
type: DataTypes.BOOLEAN,