diff options
| author | Simon McFarlane <simon@piston.pw> | 2015-05-26 23:31:47 -0700 |
|---|---|---|
| committer | Simon McFarlane <simon@piston.pw> | 2015-05-29 01:34:53 -0700 |
| commit | 4b40f69a4e6d190f6d342875bd084c2a6c9d8b0f (patch) | |
| tree | fcc5dc9efa24afcb0bda3740b59f0c4e81c42f62 /install.php | |
| parent | 2ac451ecb7aaae1ed1402425b8df6a5cb9831f2b (diff) | |
| parent | d20149b57929c27da87a7d9603d85717da15c5bc (diff) | |
Merge remote-tracking branch 'upstream/master' into vichan-merge
Diffstat (limited to 'install.php')
| -rw-r--r-- | install.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/install.php b/install.php index 8b3815a2..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()); @@ -623,6 +627,13 @@ if ($step == 0) { ), array( 'category' => 'PHP', + 'name' => 'PHP ≥ 5.4', + 'result' => PHP_VERSION_ID >= 50400, + 'required' => false, + 'message' => 'vichan works best on PHP 5.4 or better.', + ), + array( + 'category' => 'PHP', 'name' => 'mbstring extension installed', 'result' => extension_loaded('mbstring'), 'required' => true, @@ -672,13 +683,6 @@ if ($step == 0) { ), array( 'category' => 'Image processing', - 'name' => 'Imagick extension installed', - 'result' => extension_loaded('imagick'), - 'required' => false, - 'message' => '(Optional) The PHP <a href="http://www.php.net/manual/en/imagick.installation.php">Imagick</a> (ImageMagick) extension is not installed. You may not use Imagick for better (and faster) image processing.', - ), - array( - 'category' => 'Image processing', 'name' => '`convert` (command-line ImageMagick)', 'result' => $can_exec && shell_exec('which convert'), 'required' => false, |
