summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
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.