mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-26 06:19:36 +02:00
add default values for database migration purposes
This commit is contained in:
parent
e8c1567bc5
commit
a4b9887c68
2 changed files with 4 additions and 2 deletions
|
@ -12,7 +12,8 @@ const App = sequelize.define('App', {
|
||||||
},
|
},
|
||||||
categoryId: {
|
categoryId: {
|
||||||
type: DataTypes.INTEGER,
|
type: DataTypes.INTEGER,
|
||||||
allowNull: false
|
allowNull: false,
|
||||||
|
defaultValue: -1 // Default value for database migration only
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
|
|
|
@ -8,7 +8,8 @@ const Category = sequelize.define('Category', {
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: DataTypes.STRING,
|
type: DataTypes.STRING,
|
||||||
allowNull: false
|
allowNull: false,
|
||||||
|
defaultValue: 'bookmark' // Default value for database migration only
|
||||||
},
|
},
|
||||||
isPinned: {
|
isPinned: {
|
||||||
type: DataTypes.BOOLEAN,
|
type: DataTypes.BOOLEAN,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue