diff options
author | Bruno Ais <brunoaiss@gmail.com> | 2012-12-02 22:59:11 +0000 |
---|---|---|
committer | Bruno Ais <brunoaiss@gmail.com> | 2012-12-07 08:52:14 +0000 |
commit | 25780c17a4e9c1e96e8f1648bd9bd16ff06afb7f (patch) | |
tree | 4b025f13e0633034ae2c49db8d74c1e8eb503176 /phpBB/install | |
parent | 9b018bd460376abce3f4fe9d8c11feef0c547b0d (diff) | |
download | forums-25780c17a4e9c1e96e8f1648bd9bd16ff06afb7f.tar forums-25780c17a4e9c1e96e8f1648bd9bd16ff06afb7f.tar.gz forums-25780c17a4e9c1e96e8f1648bd9bd16ff06afb7f.tar.bz2 forums-25780c17a4e9c1e96e8f1648bd9bd16ff06afb7f.tar.xz forums-25780c17a4e9c1e96e8f1648bd9bd16ff06afb7f.zip |
[ticket/11171] DB changes for the update
These are the changes to database_update.php required for
this ticket.
PHPBB3-11171
Diffstat (limited to 'phpBB/install')
-rw-r--r-- | phpBB/install/database_update.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index e966756337..060d749b92 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -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; } } |