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 #1831778: Character limit set at 255, a commit was made which added support for patterns longer than 255 characters. However, it did not change the schema definition in hook_schema(), so new installs of this module will have the wrong schema.
Comment | File | Size | Author |
---|---|---|---|
#5 | commerce_autosku-pattern-length-2868735-5.patch | 939 bytes | joelstein |
|
Comments
Comment #2
joelstein CreditAttribution: joelstein at On Fire Media commentedHere's a patch which updates the schema definition to match the 7103 update.
Comment #3
joelstein CreditAttribution: joelstein at On Fire Media commentedOk, also in #1189654: Max length of #edit-product-type-autosku-pattern field there was a commit made which undid the earlier commit by adding back the max length of 255 to the pattern field.
Here's an updated patch which also removes the maxlength. The pattern should be allowed to exceed 255 characters, even though the generated SKU must be within 255 characters (which the module already enforces).
Comment #4
joelstein CreditAttribution: joelstein at On Fire Media commentedOops, forgot the patch.
Comment #5
joelstein CreditAttribution: joelstein at On Fire Media commentedOops, simply unsetting the maxlength property won't do. We have to set it to NULL (otherwise it is implied to 128).