mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
[ticket/11171] DB changes for the update
These are the changes to database_update.php required for this ticket. PHPBB3-11171
This commit is contained in:
parent
9b018bd460
commit
25780c17a4
1 changed files with 17 additions and 0 deletions
|
@ -2792,6 +2792,23 @@ function change_database_data(&$no_updates, $version)
|
|||
}
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// PHPBB3-11171: Copy bbcode fields, etc. for reported posts. Add 5 columns to the reports table
|
||||
|
||||
// Add the columns used by these changes
|
||||
$changes['add_columns'] = array(
|
||||
REPORTS_TABLE => array(
|
||||
'reported_post_enable_bbcode' => array('BOOL', 1),
|
||||
'reported_post_enable_smilies' => array('BOOL', 1),
|
||||
'reported_post_enable_magic_url' => array('BOOL', 1)
|
||||
)
|
||||
);
|
||||
$statements = $db_tools->perform_schema_changes($changes);
|
||||
|
||||
foreach ($statements as $sql)
|
||||
{
|
||||
_sql($sql, $errored, $error_ary);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue