[ticket/10003] Ported 96a30afcca to db_tools.

This change is somewhat questionable, maybe it should be reviewed.

PHPBB3-10003
This commit is contained in:
Oleg Pudeyev 2011-04-29 00:34:24 -04:00
parent e6eb11bb11
commit 3cb1b90ca6

View file

@ -681,10 +681,12 @@ class phpbb_db_tools
{ {
foreach ($columns as $column_name => $column_data) foreach ($columns as $column_name => $column_data)
{ {
// Only add the column if it does not exist yet, else change it (to be consistent) // Only add the column if it does not exist yet
if ($column_exists = $this->sql_column_exists($table, $column_name)) if ($column_exists = $this->sql_column_exists($table, $column_name))
{ {
$result = $this->sql_column_change($table, $column_name, $column_data, true); continue;
// This is commented out here because it can take tremendous time on updates
// $result = $this->sql_column_change($table, $column_name, $column_data, true);
} }
else else
{ {