aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorBruno Ais <brunoaiss@gmail.com>2012-12-06 11:22:56 +0000
committerBruno Ais <brunoaiss@gmail.com>2012-12-07 15:05:07 +0000
commit9eecaa21e3fe23c0c1afc7f8d057754fca68e9a6 (patch)
tree7075d7ee5588cfe7ccd1279091b95a36705da72d /phpBB
parent73971ef0fa2a53b056847a524bb84f8b2d3e5a4b (diff)
downloadforums-9eecaa21e3fe23c0c1afc7f8d057754fca68e9a6.tar
forums-9eecaa21e3fe23c0c1afc7f8d057754fca68e9a6.tar.gz
forums-9eecaa21e3fe23c0c1afc7f8d057754fca68e9a6.tar.bz2
forums-9eecaa21e3fe23c0c1afc7f8d057754fca68e9a6.tar.xz
forums-9eecaa21e3fe23c0c1afc7f8d057754fca68e9a6.zip
[ticket/11171] Moved the DB schema changes to its place
Moved the db changes schema to the place where all the other schema changes are. PHPBB3-11171
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/install/database_update.php25
1 files changed, 6 insertions, 19 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 060d749b92..91365d4a72 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -1123,9 +1123,12 @@ function database_update_info()
'style_parent_tree' => array('TEXT', ''),
),
REPORTS_TABLE => array(
- 'reported_post_text' => array('MTEXT_UNI', ''),
- 'reported_post_uid' => array('VCHAR:8', ''),
- 'reported_post_bitfield' => array('VCHAR:255', ''),
+ 'reported_post_text' => array('MTEXT_UNI', ''),
+ 'reported_post_uid' => array('VCHAR:8', ''),
+ 'reported_post_bitfield' => array('VCHAR:255', ''),
+ 'reported_post_enable_bbcode' => array('BOOL', 1),
+ 'reported_post_enable_smilies' => array('BOOL', 1),
+ 'reported_post_enable_magic_url' => array('BOOL', 1),
),
),
'change_columns' => array(
@@ -2791,23 +2794,7 @@ function change_database_data(&$no_updates, $version)
_sql($sql, $errored, $error_ary);
}
$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;
}