diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-08-27 12:11:34 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-08-27 12:11:34 +1000 |
| commit | aa02cffb93fecaa871528ab88d25b03c6715fab2 (patch) | |
| tree | cdcbd27744725b46291f6f529e69c32fd5e5b896 /install.php | |
| parent | 881ea101628ec03a199b87dafd6a560a69e6901e (diff) | |
increased subject max length to 100 characters
Diffstat (limited to 'install.php')
| -rw-r--r-- | install.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/install.php b/install.php index 2877d498..baac2cc4 100644 --- a/install.php +++ b/install.php @@ -1,6 +1,6 @@ <?php // Installation/upgrade file - define('VERSION', 'v0.9.3-dev-5'); + define('VERSION', 'v0.9.3-dev-6'); require 'inc/functions.php'; require 'inc/display.php'; @@ -85,6 +85,12 @@ case 'v0.9.3-dev-4': // add ban ID query("ALTER TABLE `bans` ADD `id` INT NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY ( `id` ), ADD UNIQUE (`id`)"); + case 'v0.9.3-dev-5': + $boards = listBoards(); + foreach($boards as &$_board) { + // Increase subject field size + query(sprintf("ALTER TABLE `posts_%s` CHANGE `subject` `subject` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL", $_board['uri'])) or error(db_error()); + } case false: // Update version number file_write($config['has_installed'], VERSION); |
