Skip to content

Commit

Permalink
varchar length
Browse files Browse the repository at this point in the history
  • Loading branch information
xsalonx committed Mar 12, 2024
1 parent 2f828d1 commit 38c3105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
allowNull: false,
},
color: {
type: Sequelize.STRING,
type: Sequelize.STRING(7),
allowNull: true,
},

Expand Down
2 changes: 1 addition & 1 deletion lib/database/models/qcFlagType.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = (sequelize) => {
allowNull: false,
},
color: {
type: Sequelize.STRING,
type: Sequelize.STRING(7),
allowNull: true,
validate: {
is: /^#[0-9a-fA-F]{6}$/i,
Expand Down

0 comments on commit 38c3105

Please sign in to comment.