diff options
| author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2011-01-11 13:48:13 +0100 |
|---|---|---|
| committer | Oleg Pudeyev <oleg@bsdpower.com> | 2011-02-23 21:15:40 -0500 |
| commit | a7bc76d24622ce89f35023738e459ce38aa169a5 (patch) | |
| tree | 2918c3ce9316365b8ff1b70fdeb2a42368f686a3 /phpBB/install | |
| parent | 510248da2844df22af1cd807e13b46c0c8b68290 (diff) | |
| download | forums-a7bc76d24622ce89f35023738e459ce38aa169a5.tar forums-a7bc76d24622ce89f35023738e459ce38aa169a5.tar.gz forums-a7bc76d24622ce89f35023738e459ce38aa169a5.tar.bz2 forums-a7bc76d24622ce89f35023738e459ce38aa169a5.tar.xz forums-a7bc76d24622ce89f35023738e459ce38aa169a5.zip | |
[ticket/7778] BBCode single limit
There are currently two hard limits for the number of BBCodes
allowed. One is enforced by the type of the `bbcode_id` column,
the other by an hard limit in `acp/acp_bbcode.php`. However this
limit can never be reached due to the size of the database column.
Suggested fix involves adding a new constant to define the max.
number of BBCodes (as with smilies) and chaning the database
column from a tinyint to a smallint to actually allow 1511 BBCodes
PHPBB3-7778
Diffstat (limited to 'phpBB/install')
| -rw-r--r-- | phpBB/install/database_update.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 4d3d51923b..d74d1dab68 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -916,8 +916,15 @@ function database_update_info() '3.0.7-PL1' => array(), // No changes from 3.0.8-RC1 to 3.0.8 '3.0.8-RC1' => array(), - // No changes from 3.0.8 to 3.0.9-RC1 - '3.0.8' => array(), + + // Changes from 3.0.8 to 3.0.9-RC1 + '3.0.8' => array( + 'change_columns' => array( + BBCODES_TABLE => array( + 'bbcode_id' => array('USINT', 0), + ), + ), + ), ); } |
