A default content_type length of "20" doesnot cut it, a lot of my fields are CCK based so they inherit the "content-" prefix which then limits the field to only 12chars before the db stops matching results.
This could explain some people expiriencing random failure on certain fields..
function votingapi_update_10() {
$ret[] = update_sql("ALTER TABLE {votingapi_vote} CHANGE `content_type` `content_type` VARCHAR( 50 )");
$ret[] = update_sql("ALTER TABLE {votingapi_cache} CHANGE `content_type` `content_type` VARCHAR( 50 )");
$ret[] = update_sql("ALTER TABLE {votingapi_action_set} CHANGE `content_type` `content_type` VARCHAR( 50 )");
return $ret;
}
| Comment | File | Size | Author |
|---|---|---|---|
| fieldlength.patch | 689 bytes | dgtlmoon |
Comments
Comment #1
eaton commentedDuplicate of http://drupal.org/node/137551.