mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
#12279 - Thanks to ToonArmy
git-svn-id: file:///svn/phpbb/trunk@7742 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f31c53963a
commit
e41b3b8943
2 changed files with 3 additions and 2 deletions
|
@ -257,6 +257,7 @@ p a {
|
||||||
<li>[Fix] UTF-8 support in theme and template editors (Bug #12251)</li>
|
<li>[Fix] UTF-8 support in theme and template editors (Bug #12251)</li>
|
||||||
<li>[Fix] Allow for posts per page in the MCP to change during topic selection (Bug #12067)</li>
|
<li>[Fix] Allow for posts per page in the MCP to change during topic selection (Bug #12067)</li>
|
||||||
<li>[Fix] Remove group avatars upon deletion from all profiles, not just the people having the group as default (Bug #12275, #12267)</li>
|
<li>[Fix] Remove group avatars upon deletion from all profiles, not just the people having the group as default (Bug #12275, #12267)</li>
|
||||||
|
<li>[Fix] Allow for conversions to SQLite (Bug #12279) - patch provided by ToonArmy</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
|
@ -1727,15 +1727,15 @@ function phpbb_check_username_collisions()
|
||||||
case 'sqlite':
|
case 'sqlite':
|
||||||
$create_sql = 'CREATE TABLE ' . $table_prefix . 'userconv (
|
$create_sql = 'CREATE TABLE ' . $table_prefix . 'userconv (
|
||||||
user_id INTEGER NOT NULL DEFAULT \'0\',
|
user_id INTEGER NOT NULL DEFAULT \'0\',
|
||||||
username_clean varchar(255) NOT NULL DEFAULT \'\',
|
username_clean varchar(255) NOT NULL DEFAULT \'\'
|
||||||
)';
|
)';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->sql_return_on_error(true);
|
$db->sql_return_on_error(true);
|
||||||
$db->sql_query($drop_sql);
|
$db->sql_query($drop_sql);
|
||||||
$db->sql_query($create_sql);
|
|
||||||
$db->sql_return_on_error(false);
|
$db->sql_return_on_error(false);
|
||||||
|
$db->sql_query($create_sql);
|
||||||
|
|
||||||
// now select all user_ids and usernames and then convert the username (this can take quite a while!)
|
// now select all user_ids and usernames and then convert the username (this can take quite a while!)
|
||||||
$sql = 'SELECT user_id, username
|
$sql = 'SELECT user_id, username
|
||||||
|
|
Loading…
Add table
Reference in a new issue