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.
Problem
The status field in the sms_track table within the sms_track module only accepts values up to 255 as a tinyint in MySQL. This is an issue as the status codes defined in the sms.module file go up to a maximum value of 500, attempting to store one of these codes will result in either a truncated value being stored or a MySQL error.
Proposed Resolution
Change the field to a smallint (size => small), so that all status codes are accepted.
Comment | File | Size | Author |
---|---|---|---|
#1 | smsframework-tracking-status-field-too-small-1959802-1.patch | 896 bytes | sd46 |
Comments
Comment #1
sd46 CreditAttribution: sd46 commentedPatch to fix issue, and add update function in .install file
Comment #2
almaudoh CreditAttribution: almaudoh commentedI saw this patch too late :(!!! Some part of this issue has been fixed in another similar issue where this patch would have come in handy. Thanks @sd46 for the elegant solution :)
Related issues: #2282309: Numeric value out of range: 1264 Out of range value for column 'status' and #2295013: Upgrade path: 'status' column in sms_track table is too small
Comment #3
almaudoh CreditAttribution: almaudoh commentedPatch committed / pushed to 7.x-1.x. Thanks :)