- Better upgrade path. Suggested by Neil.

4.6.x
Dries Buytaert 2005-03-03 20:14:53 +00:00
parent f7b8f53577
commit 7008cd716d
1 changed files with 3 additions and 2 deletions

View File

@ -2306,8 +2306,9 @@ function update_125() {
}
function update_126() {
$ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'forum_block_%'");
return $ret;
variable_set('forum_block_num_0', variable_get('forum_block_num', 5));
variable_set('forum_block_num_1', variable_get('forum_block_num', 5));
variable_delete('forum_block_num');
}
function update_sql($sql) {