Integrity constraint violation: 19 NOT NULL constraint failed: users.avatar
Hi, Not sure where to post this. GitHub Wave does not have the Issue tab.
Installed Herd on Windows, installed Wave with Autoinstaller (very cool feature)
Went to Admin > Users, Went to create a new User, then got an error when submitting the form; SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: users.avatar
Hey!
Thank you for reporting this bug!
I've submitted a PR with a fix here:
You can cherry pick the change or wait for this to be released in the next version.
Let me know if anything else pops up!
- Bobby
















Yep! Posting questions here works great.
Hi Bobby, just looked at your fix. Wouldn't it be better not to declare the avatar field as a mandatory field and only make it mandatory via a settings option if necessary?
Declaring an avatar as a mandatory field on the database side doesn't feel like the right decision to me. What do you think?
Hey!
Yes, that actually is a good point and I was also thinking about it when submitting the PR to fix that database error.
Might instead be better to have a default value that gets assigned if no avatar is provided.















