updated to v2.4.3
This commit is contained in:
parent
a7065fe5e6
commit
4767ff988e
|
|
@ -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'),
|
||||
|
|
|
|||
14
setup/update_scripts/update-from-2.4.2-to-2.4.3.php
Normal file
14
setup/update_scripts/update-from-2.4.2-to-2.4.3.php
Normal 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";
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user