diff --git a/phpBB/upgrade.php b/phpBB/upgrade.php
index 3d6c65f9e4..fca68321bf 100644
--- a/phpBB/upgrade.php
+++ b/phpBB/upgrade.php
@@ -524,9 +524,22 @@ if(isset($next))
'user_yim',
'user_msnm');
- lock_tables(1, USERS_TABLE);
+ lock_tables(1, array(USERS_TABLE, GROUPS_TABLE, USER_GROUP_TABLE));
while($row = mysql_fetch_array($result))
{
+ $sql = "INSERT INTO ".GROUPS_TABLE." (group_name, group_description, group_single_user) VALUES ('".addslashes($row['username'])."', 'Personal User', 1)";
+ query($sql, "Wasn't able to insert user ".$row['user_id']." into table ".GROUPS_TABLE);
+ $group_id = mysql_insert_id();
+ if($group_id != 0)
+ {
+ $sql = "INSERT INTO ".USER_GROUP_TABLE." (group_id, user_id, user_pending) VALUES ($group_id, ".$row['user_id'].", 0)";
+ query($sql, "Wasn't able to insert user ".$row['user_id']." into table ".USER_GROUP_TABLE);
+ }
+ else
+ {
+ print "Couldn't get insert ID for ".GROUPS_TABLE." table
\n";
+ }
+
if(is_int($row['user_regdate']))
{
// We already converted this post to the new style BBcode, skip this post.
@@ -600,7 +613,8 @@ if(isset($next))
user_intrest = '".$row['user_intrest']."',
user_aim = '".$row['user_aim']."',
user_yim = '".$row['user_yim']."',
- user_msnm = '".$row['user_msnm']."'
+ user_msnm = '".$row['user_msnm']."',
+ user_level = '".$row['user_userlevel']."'
WHERE user_id = ".$row['user_id'];
query($sql, "Couldn't update ".USERS_TABLE." table with new BBcode and regdate for user_id ".$row['user_id']);
}
@@ -788,6 +802,45 @@ if(isset($next))
}
lock_tables(0);
+ end_step('convert_mods');
+
+ case 'convert_mods';
+ echo "