function twitter_update_6007 in Twitter 6.5
Same name and namespace in other branches
- 6.2 twitter.install \twitter_update_6007()
- 6.3 twitter.install \twitter_update_6007()
- 6.4 twitter.install \twitter_update_6007()
Update the last_refresh column to supply a default value.
See also
https://www.drupal.org/node/301317
File
- ./twitter.install, line 599 
- Install, update and uninstall functions for the twitter module.
Code
function twitter_update_6007() {
  $ret = array();
  db_change_field($ret, 'twitter_account', 'last_refresh', 'last_refresh', array(
    'description' => t("A UNIX timestamp marking the date Twitter statuses were last fetched on."),
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  return $ret;
}