You are here

function twitter_update_6003 in Twitter 6.5

Same name and namespace in other branches
  1. 6.2 twitter.install \twitter_update_6003()
  2. 6.3 twitter.install \twitter_update_6003()
  3. 6.4 twitter.install \twitter_update_6003()

Twitter status IDs are hitting the rollover point for signed ints. Let's be sure we're ready. See http://bit.ly/kokvi for details.

File

./twitter.install, line 443
Install, update and uninstall functions for the twitter module.

Code

function twitter_update_6003() {
  $ret = array();
  db_drop_primary_key($ret, 'twitter');
  db_change_field($ret, 'twitter', 'twitter_id', 'twitter_id', array(
    'description' => t("Unique identifier for each {twitter} post."),
    'type' => 'int',
    'size' => 'big',
    'unsigned' => 'true',
    'not null' => TRUE,
  ), array(
    'primary key' => array(
      'twitter_id',
    ),
  ));
  return $ret;
}