summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-08-14 16:24:17 +0200
committerczaks <marcin@6irc.net>2016-08-14 16:24:17 +0200
commit5e335a8564a76f0449d47f0767b4baa8d2cb9e91 (patch)
treed6555a093661f8a43f4e4ee55d30d0bd16ae1bcd /install.php
parent11cecf8452d724b1a61e82292cff1cc16a5403e7 (diff)
preliminary inbound nntpchan support
Diffstat (limited to 'install.php')
-rw-r--r--install.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/install.php b/install.php
index de4d3dd0..6f1617a8 100644
--- a/install.php
+++ b/install.php
@@ -1,7 +1,7 @@
<?php
// Installation/upgrade file
-define('VERSION', '5.1.2');
+define('VERSION', '5.1.3');
require 'inc/functions.php';
@@ -574,6 +574,19 @@ if (file_exists($config['has_installed'])) {
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 '5.1.2':
+ query('CREATE TABLE ``nntp_references`` (
+ `board` varchar(60) NOT NULL,
+ `id` int(11) unsigned NOT NULL,
+ `message_id` varchar(255) CHARACTER SET ascii NOT NULL,
+ `message_id_digest` varchar(40) CHARACTER SET ascii NOT NULL,
+ `own` tinyint(1) NOT NULL,
+ `headers` text,
+ PRIMARY KEY (`message_id_digest`),
+ UNIQUE KEY `message_id` (`message_id`),
+ UNIQUE KEY `u_board_id` (`board`, `id`)
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+ ') or error(db_error());
case false:
// TODO: enhance Tinyboard -> vichan upgrade path.