updated to v2.4.3

This commit is contained in:
printempw 2016-04-11 17:35:53 +08:00
parent a7065fe5e6
commit 4767ff988e
2 changed files with 16 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @Author: printempw
* @Date: 2016-04-03 16:22:11
* @Last Modified by: printempw
* @Last Modified time: 2016-04-05 14:46:31
* @Last Modified time: 2016-04-11 17:34:14
*/
CREATE TABLE IF NOT EXISTS `{$prefix}users` (
@ -29,7 +29,7 @@ INSERT INTO `{$prefix}options` (`option_name`, `option_value`) VALUES
('site_url', ''),
('site_name', '{$sitename}'),
('site_description', 'Minecraft 皮肤站'),
('current_version', '2.4'),
('current_version', '2.4.3'),
('user_can_register', '1'),
('user_default_skin', ''),
('regs_per_ip', '2'),

View File

@ -0,0 +1,14 @@
<?php
/**
* @Author: printempw
* @Date: 2016-04-11 17:34:30
* @Last Modified by: printempw
* @Last Modified time: 2016-04-11 17:35:20
*/
if (!defined('BASE_DIR')) exit('请运行 /setup/update.php 来升级');
if (Option::get('current_version') == "2.4.2") {
Option::set('current_version', '2.4.3');
echo "已成功升级至 v2.4.3";
}