summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/install.php b/install.php
index 160492cd..b701c6d3 100644
--- a/install.php
+++ b/install.php
@@ -1,6 +1,6 @@
<?php
// Installation/upgrade file
- define('VERSION', 'v0.9.3-dev-7');
+ define('VERSION', 'v0.9.3-dev-8');
require 'inc/functions.php';
require 'inc/display.php';
@@ -102,8 +102,13 @@
}
foreach($tables as &$table) {
- query("ALTER TABLE `{$table}` ENGINE = MYISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci");
- }
+ query("ALTER TABLE `{$table}` ENGINE = MYISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci") or error(db_error());
+ }
+ case 'v0.9.3-dev-7':
+ $boards = listBoards();
+ foreach($boards as &$board) {
+ query(sprintf("ALTER TABLE `posts_%s` CHANGE `filename` `filename` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL", $board['uri'])) or error(db_error());
+ }
case false:
// Update version number
file_write($config['has_installed'], VERSION);