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;
}
CommentFileSizeAuthor
fieldlength.patch689 bytesdgtlmoon

Comments

eaton’s picture

Status: Needs work » Closed (duplicate)