mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
do not change column if column already exists.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9956 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ff458a5b4e
commit
96a30afcca
1 changed files with 4 additions and 2 deletions
|
@ -1860,10 +1860,12 @@ class updater_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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue