summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-03-10 14:22:47 +0100
committerczaks <marcin@6irc.net>2015-03-10 14:22:47 +0100
commitbf1b6103cf6d3cf7f83e85453aad2d03e03e62da (patch)
tree9460a02b2e7629059349fb88cacb1ad54bab1814 /install.php
parent6c4d3941fa729558f4a5313081c85b0a06202e54 (diff)
parent4bf525599e7c596e7aec7f483664a091ef0db57b (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Diffstat (limited to 'install.php')
-rw-r--r--install.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/install.php b/install.php
index 2e050eee..95caf8ec 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
-define('VERSION', '4.9.92');
+define('VERSION', '4.9.93');
require 'inc/functions.php';
@@ -547,6 +547,10 @@ if (file_exists($config['has_installed'])) {
}
case '4.9.90':
case '4.9.91':
+ case '4.9.92':
+ foreach ($boards as &$board) {
+ query(sprintf('ALTER TABLE ``posts_%s`` ADD `slug` VARCHAR(255) DEFAULT NULL AFTER `embed`;', $board['uri'])) or error(db_error());
+ }
case false:
// TODO: enhance Tinyboard -> vichan upgrade path.
query("CREATE TABLE IF NOT EXISTS ``search_queries`` ( `ip` varchar(39) NOT NULL, `time` int(11) NOT NULL, `query` text NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8;") or error(db_error());