Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In strict mode, MySQL cannot accept an empty string when a field's "not null" property is set to TRUE. This can cause MySQL errors to be thrown in certain situations.
As far as I know there is no downside to setting 'not null'->FALSE, many CCK core fields do that now.
Patch attached, this is my second patch submission! Let me know if you need anything :)
Comment | File | Size | Author |
---|---|---|---|
email.module.patch | 448 bytes | gdd |
Comments
Comment #1
mh86 CreditAttribution: mh86 commentedI added a default = "''" to the database column settings, like it is done in the text module. This fixes the problem, although I didn't write an update script to fix the already existing database columns..
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.