mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/11277] Correctly remove user_dst column on database update
The db_tools is running in "return statement" mode, so the queries to modify the data are not executed, but just returned. PHPBB3-11277
This commit is contained in:
parent
e444f5bf2a
commit
5f56804a96
1 changed files with 5 additions and 1 deletions
|
@ -2885,7 +2885,11 @@ function change_database_data(&$no_updates, $version)
|
|||
set_config('board_timezone', $update_helpers->convert_phpbb30_timezone($config['board_timezone'], $config['board_dst']));
|
||||
|
||||
// After we have calculated the timezones we can delete user_dst column from user table.
|
||||
$db_tools->sql_column_remove(USERS_TABLE, 'user_dst');
|
||||
$statements = $db_tools->sql_column_remove(USERS_TABLE, 'user_dst');
|
||||
foreach ($statements as $sql)
|
||||
{
|
||||
_sql($sql, $errored, $error_ary);
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($config['site_home_url']))
|
||||
|
|
Loading…
Add table
Reference in a new issue