diff options
| author | czaks <marcin@6irc.net> | 2016-05-05 06:43:22 +0200 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2016-05-05 06:43:22 +0200 |
| commit | 7c3126866cd291d515ab5cc83d4635c3c95c6d85 (patch) | |
| tree | 8eb21f57b88e36c481da8f8a74c32ec52ce4f4ab /install.php | |
| parent | 2caad907557e38eb0172f96d1e740e1077e81267 (diff) | |
ease the migration process for the previous security patch (by introducing another migration); restore php 5.4 compatibility (introducing a polyfill system)
Diffstat (limited to 'install.php')
| -rw-r--r-- | install.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/install.php b/install.php index 5a2d724a..968c41de 100644 --- a/install.php +++ b/install.php @@ -1,7 +1,7 @@ <?php // Installation/upgrade file -define('VERSION', '5.0.0'); +define('VERSION', '5.0.1'); require 'inc/functions.php'; @@ -556,6 +556,8 @@ if (file_exists($config['has_installed'])) { 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()); |
