Commit 7008cd71 authored by Dries's avatar Dries
Browse files

- Better upgrade path. Suggested by Neil.

parent f7b8f535
......@@ -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) {
......
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