Using a different approach for the data updates (same as the schema updates)

git-svn-id: file:///svn/phpbb/trunk@6671 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2006-11-27 16:05:23 +00:00
parent 22c729c41b
commit 688ef7560a
3 changed files with 21 additions and 26 deletions

View file

@ -308,7 +308,7 @@ $database_update_info = array(
),
),
// Latest version
'3.0.b4-dev' => array(),
'3.0.b4' => array(),
);
// Determine mapping database type
@ -458,10 +458,11 @@ $errored = $no_updates = false;
flush();
$no_updates = true;
// some code magic
switch ($current_version)
if (version_compare($current_version, '3.0.b3', '<'))
{
case '3.0.b3':
// Set group_founder_manage for administrators group
$sql = 'SELECT group_id
FROM ' . GROUPS_TABLE . "
@ -479,13 +480,7 @@ switch ($current_version)
add_bots();
// No need to change here. Before this line, no break should appear
break;
case '3.0.b4-dev':
default:
$no_updates = true;
break;
$no_updates = false;
}
_write_result($no_updates, $errored, $error_ary);