diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-12-21 15:29:54 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-12-21 15:29:54 +0100 |
commit | 5f56804a9620bd537f85757707327a1017325053 (patch) | |
tree | da4efb7a32ba7863d59d03a3281489f20dd98e39 /phpBB | |
parent | e444f5bf2a8b30aefb3700ce358d2a6be66c8cb5 (diff) | |
download | forums-5f56804a9620bd537f85757707327a1017325053.tar forums-5f56804a9620bd537f85757707327a1017325053.tar.gz forums-5f56804a9620bd537f85757707327a1017325053.tar.bz2 forums-5f56804a9620bd537f85757707327a1017325053.tar.xz forums-5f56804a9620bd537f85757707327a1017325053.zip |
[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
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/install/database_update.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 19d0d35fc0..1698e7777a 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -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'])) |