Commit 7708de50 authored by bgm's avatar bgm

Issue #1780860: Must truncate the boost_cache_relationships table because it...

Issue #1780860: Must truncate the boost_cache_relationships table because it tends to be huge and blocks the upgrade.
parent a0e7e78d
......@@ -1366,6 +1366,10 @@ function boost_update_6120() {
ini_set('max_execution_time', 10800); //3 Hours
_boost_install_set_time_limit(0);
$ret = array();
// Issue #1780860: Must truncate the table because it tends to be huge
$ret[] = update_sql('TRUNCATE {boost_cache_relationships}');
// Add in hash_url & timestamp columns to boost_cache
db_add_field($ret, 'boost_cache_relationships', 'hash_url', array(
'description' => 'MD5 hash of url',
......@@ -1442,6 +1446,9 @@ function boost_update_6122() {
function boost_update_6123() {
$ret = array();
// Issue #1780860: Must truncate the table because it tends to be huge
$ret[] = update_sql('TRUNCATE {boost_cache_relationships}');
// Add indexes
db_add_index($ret, 'boost_cache_relationships', 'base_dir', array('base_dir'));
db_add_index($ret, 'boost_cache_relationships', 'page_callback', array('page_callback'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment