summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-05 10:48:02 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-05 10:48:02 +1100
commit486842e9a1e0a8587de64e62256388cf1e54b7b5 (patch)
tree5b69ad857716a6a11b42586652a18b07006fd547 /install.php
parentfc417bc44625a509fdcc5b1320f5d5511223823c (diff)
..
Diffstat (limited to 'install.php')
-rw-r--r--install.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/install.php b/install.php
index df4bde1e..f68f1575 100644
--- a/install.php
+++ b/install.php
@@ -1,6 +1,6 @@
<?php
// Installation/upgrade file
- define('VERSION', 'v0.9.4');
+ define('VERSION', 'v0.9.5-dev-1');
require 'inc/functions.php';
require 'inc/display.php';
@@ -152,7 +152,15 @@
}
case 'v0.9.4-dev-3':
case 'v0.9.4-dev-4':
- // nothing
+ case 'v0.9.4':
+ foreach($boards as &$board) {
+ query(sprintf("ALTER TABLE `posts_%s`
+ CHANGE `subject` `subject` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL ,
+ CHANGE `email` `email` VARCHAR( 30 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL ,
+ CHANGE `name` `name` VARCHAR( 35 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL", $board['uri'])) or error(db_error());
+ }
+
+
case false:
// Update version number
file_write($config['has_installed'], VERSION);