summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorFredrick Brennan <admin@8chan.co>2015-04-03 14:56:28 +0800
committerczaks <marcin@6irc.net>2016-05-06 16:39:20 +0200
commit505adffcdca1c1141b7b46f862b7939f2f4acf45 (patch)
tree114147c8a811183561a227cce875140bc4ac364e /install.php
parentab02a4272514410fc053ced9c17a26bc0c8f1cf4 (diff)
Cyclical threads ♺
Diffstat (limited to 'install.php')
-rw-r--r--install.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/install.php b/install.php
index 5a6512ba..de4d3dd0 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
-define('VERSION', '5.1.1');
+define('VERSION', '5.1.2');
require 'inc/functions.php';
@@ -570,6 +570,11 @@ if (file_exists($config['has_installed'])) {
PRIMARY KEY (`id`),
UNIQUE KEY `u_pages` (`name`,`board`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;') or error(db_error());
+ case '5.1.1':
+ foreach ($boards as &$board) {
+ query(sprintf("ALTER TABLE ``posts_%s`` ADD `cycle` int(1) NOT NULL AFTER `locked`", $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());