summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/install.php b/install.php
index e3e8a3e2..808529ab 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
-define('VERSION', 'v0.9.6-dev-14 + <a href="https://int.vichan.net/devel/">vichan-devel-4.0.12</a>');
+define('VERSION', 'v0.9.6-dev-16 + <a href="https://int.vichan.net/devel/">vichan-devel-4.0.13</a>');
require 'inc/functions.php';
@@ -384,6 +384,23 @@ if (file_exists($config['has_installed'])) {
case 'v0.9.6-dev-13':
query("ALTER TABLE ``antispam`` ADD INDEX `expires` (`expires`)") or error(db_error());
case 'v0.9.6-dev-14':
+ case 'v0.9.6-dev-14 + <a href="https://int.vichan.net/devel/">vichan-devel-4.0.12</a>':
+ foreach ($boards as &$board) {
+ query(sprintf("ALTER TABLE ``posts_%s``
+ DROP INDEX `body`,
+ ADD INDEX `filehash` (`filehash`(40))", $board['uri'])) or error(db_error());
+ }
+ query("ALTER TABLE ``modlogs`` ADD INDEX `mod` (`mod`)") or error(db_error());
+ query("ALTER TABLE ``bans`` DROP INDEX `ip`") or error(db_error());
+ query("ALTER TABLE ``bans`` ADD INDEX `ip` (`ip`)") or error(db_error());
+ query("ALTER TABLE ``noticeboard`` ADD INDEX `time` (`time`)") or error(db_error());
+ query("ALTER TABLE ``pms`` ADD INDEX `to` (`to`, `unread`)") or error(db_error());
+ case 'v0.9.6-dev-15':
+ foreach ($boards as &$board) {
+ query(sprintf("ALTER TABLE ``posts_%s``
+ ADD INDEX `list_threads` (`thread`, `sticky`, `bump`)", $board['uri'])) or error(db_error());
+ }
+ case 'v0.9.6-dev-16':
case false:
// Update version number
file_write($config['has_installed'], VERSION);