-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Description
ENUM's are not observing the notNull property.
see line 155 dao.js
if (isEnum && hasValue && valueOutOfScope) {
throw new Error('Value "' + values[attrName] + '" for ENUM ' + attrName + ' is out of allowed scope. Allowed values: ' + definition.values.join(', '))
}
example:
gender: {
type: Sequelize.ENUM,
values: ['male', 'female', 'other'],
allowNull: true,
}
Value "null" for ENUM gender is out of allowed scope. Allowed values: male, female, other
Metadata
Metadata
Assignees
Labels
No labels