You are here

function twitter_update_6510 in Twitter 6.5

Change {twitter_account}.twitter_uid to BIGINT.

File

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

Code

function twitter_update_6510() {
  $ret = array();
  db_drop_primary_key($ret, 'twitter_account');
  $spec = array(
    'description' => "The unique identifier of the {twitter_account}.",
    'type' => 'int',
    'unsigned' => TRUE,
    'size' => 'big',
    'not null' => TRUE,
    'default' => 0,
  );
  $index_spec = array(
    'primary key' => array(
      'twitter_uid',
    ),
  );
  db_change_field($ret, 'twitter_account', 'twitter_uid', 'twitter_uid', $spec, $index_spec);
  return $ret;
}