function boost_update_6122 in Boost 6
Update 6122 - Remove default value for all text columns.
File
- ./
boost.install, line 1419 - Handles Boost module installation and upgrade tasks.
Code
function boost_update_6122() {
$ret = array();
db_change_field($ret, 'boost_cache', 'filename', 'filename', array(
'description' => 'URL of cached page',
'type' => 'text',
'size' => 'normal',
'not null' => TRUE,
));
db_change_field($ret, 'boost_cache', 'url', 'url', array(
'description' => 'URL of cached page',
'type' => 'text',
'size' => 'normal',
'not null' => TRUE,
));
$ret[] = update_sql('TRUNCATE {boost_crawler}');
db_change_field($ret, 'boost_crawler', 'url', 'url', array(
'description' => 'URL of page',
'type' => 'text',
'size' => 'normal',
'not null' => TRUE,
));
return $ret;
}