forked from leftypol/leftypol
preliminary inbound nntpchan support
This commit is contained in:
parent
11cecf8452
commit
5e335a8564
4 changed files with 326 additions and 92 deletions
15
install.php
15
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue