diff options
| author | czaks <marcin@6irc.net> | 2016-05-05 06:45:08 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 06:45:08 +0200 |
| commit | c898f9749367b4ce9eea06ec9dc178baa7752d04 (patch) | |
| tree | 8eb21f57b88e36c481da8f8a74c32ec52ce4f4ab /install.php | |
| parent | c53f13bf90716461780fef0a2b4b6e2b5b3cb002 (diff) | |
| parent | 7c3126866cd291d515ab5cc83d4635c3c95c6d85 (diff) | |
Merge branch 'master' of https://github.com/vichan-devel/vichan
Diffstat (limited to 'install.php')
| -rw-r--r-- | install.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install.php b/install.php index 95caf8ec..968c41de 100644 --- a/install.php +++ b/install.php @@ -1,10 +1,12 @@ <?php // Installation/upgrade file -define('VERSION', '4.9.93'); +define('VERSION', '5.0.1'); require 'inc/functions.php'; +loadConfig(); + $step = isset($_GET['step']) ? round($_GET['step']) : 0; $page = array( 'config' => $config, @@ -551,6 +553,11 @@ if (file_exists($config['has_installed'])) { 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 '4.9.93': + query('ALTER TABLE ``mods`` CHANGE `password` `password` VARCHAR(255) NOT NULL;') or error(db_error()); + query('ALTER TABLE ``mods`` CHANGE `salt` `salt` VARCHAR(64) NOT NULL;') or error(db_error()); + case '5.0.0': + query('ALTER TABLE ``mods`` CHANGE `salt` `version` VARCHAR(64) NOT NULL;') 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()); |
