Skip to content

Commit

Permalink
* Update version number to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjianhua committed Oct 21, 2022
1 parent ce67f4d commit 474f909
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

/* 基本设置。Basic settings. */
$config->platformVersion = getenv('CHART_VERSION');// 渠成平台版本。The version of Qucheng platform.
$config->version = '1.6.0'; // 渠成Web版本。 The version of Web Service of Qucheng. Don't change it.
$config->version = '2.0.0'; // 渠成Web版本。 The version of Web Service of Qucheng. Don't change it.
$config->charset = 'UTF-8'; // 编码。 The encoding of Qucheng.
$config->cookieLife = time() + 2592000; // Cookie的生存时间。The cookie life time.
$config->timezone = 'Asia/Shanghai'; // 时区设置。 The time zone setting, for more see http://www.php.net/manual/en/timezones.php.
Expand Down
2 changes: 1 addition & 1 deletion frontend/db/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ CREATE TABLE IF NOT EXISTS `q_navinstance` (

REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'navigation', 'global', 'hideInaccessible', 'off');
REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', 'global', 'allowAnonymousAccess', 'off');
REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', 'global', 'version', '1.4.1');
REPLACE INTO `q_config` (`owner`, `module`, `section`, `key`, `value`) VALUES ('system', 'common', 'global', 'version', '2.0.0');

set sql_mode = '';
REPLACE INTO `q_company` (`name`, `admins`) VALUES ('', ',qadmin,');
Expand Down
2 changes: 1 addition & 1 deletion frontend/module/backup/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
$config->backup->setting = '';
$config->backup->settingDir = '/data/qucheng/backup';

$config->backup->versionURL = 'https://www.qucheng.com/article/release-1.4-156.html';
$config->backup->versionURL = 'https://www.qucheng.com/article/release-2.0-185.html';
2 changes: 1 addition & 1 deletion frontend/www/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

/* Check for need upgrade. */
$config->installedVersion = $app->getInstalledVersion();
if($config->version != $config->installedVersion)
if(version_compare(strtolower($config->version), strtolower($config->installedVersion), '>'))
{
$upgradeHtml = <<<UPGRADE
<html><head><meta charset='utf-8'></head>
Expand Down

0 comments on commit 474f909

Please sign in to comment.