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.
The schema module says:
nodewords_bypath_rules.type is type int but its default 1 is PHP type string
Comment | File | Size | Author |
---|---|---|---|
#1 | nodewords_bypath-n400290-schema_error.patch | 466 bytes | DamienMcKenna |
Comments
Comment #1
DamienMcKennaPatch attached.
Comment #2
DamienMcKennaThere are actually several additional issues as reported by schema.module:
Going through them:
* Should all columns marked "text" with a fixed length, e.g. nodewords_bypath_rules .path_expr, be changed to varchar or should the length be removed?
* MySQL interprets the 'length' attribute as the 'disp-width', i.e. the display width rather than a hard data storage length. Accordingly, the correct 'size' attribute should be used instead, e.g. 'int:1' should be changed to 'int:tiny' ('type' => 'int', 'size' => 'tiny'). Honestly, the 'int:10' should be just left as 'int'. Please see http://matthom.com/archive/2006/11/28/mysql-integer-columns-and-display-... for an easy-to-follow explanation of this.
Comment #3
DamienMcKennaThe patch needs to also resolve the other issues from comment #2.
Comment #4
univate CreditAttribution: univate commentedI have gone through and checked against the schema module and this should be fixed.