You are here

function boost_update_6105 in Boost 6

Update 6105 - Add new column to boost_cache table Add in url column

File

./boost.install, line 992
Handles Boost module installation and upgrade tasks.

Code

function boost_update_6105() {
  $GLOBALS['_boost_max_execution_time'] = ini_get('max_execution_time');
  ini_set('max_execution_time', 10800);

  //3 Hours
  _boost_install_set_time_limit(0);
  $ret = array();
  db_add_field($ret, 'boost_cache', 'url', array(
    'description' => 'URL of cached page',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
  _boost_install_set_time_limit(0);
  ini_set('max_execution_time', $GLOBALS['_boost_max_execution_time']);
  return $ret;
}