Commit 4dfe09eb authored by Liang Ding's avatar Liang Ding

🔖 发布 v3.5.0

parent c2eb30aa
{
"name": "Solo",
"version": "3.4.0",
"version": "3.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "Solo",
"version": "3.4.0",
"version": "3.5.0",
"description": " 一款小而美的博客系统,专为程序员设计。",
"homepage": "https://github.com/b3log/solo",
"repository": {
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: Solo POM.
Version: 3.18.3.53, Mar 26, 2019
Version: 3.18.3.54, Mar 31, 2019
Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a>
Author: <a href="http://vanessa.b3log.org">Vanessa</a>
......@@ -16,7 +16,7 @@
<artifactId>solo</artifactId>
<packaging>war</packaging>
<name>Solo</name>
<version>3.4.0</version>
<version>3.5.0</version>
<description>
一款小而美的博客系统,专为程序员设计。
</description>
......
......@@ -58,7 +58,7 @@ import javax.servlet.http.HttpSessionEvent;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://vanessa.b3log.org">Vanessa</a>
* @version 1.11.0.13, Mar 29, 2019
* @version 1.11.0.14, Mar 31, 2019
* @since 0.3.1
*/
public final class SoloServletListener extends AbstractServletListener {
......@@ -71,7 +71,7 @@ public final class SoloServletListener extends AbstractServletListener {
/**
* Solo version.
*/
public static final String VERSION = "3.4.0";
public static final String VERSION = "3.5.0";
/**
* Bean manager.
......
......@@ -30,7 +30,7 @@ import org.json.JSONObject;
* Upgrade service.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.1.4, Mar 26, 2019
* @version 1.2.1.5, Mar 31, 2019
* @since 1.2.0
*/
@Service
......@@ -73,6 +73,8 @@ public class UpgradeService {
V320_330.perform();
case "3.3.0":
V330_340.perform();
case "3.4.0":
V340_350.perform();
break;
default:
......
......@@ -30,7 +30,7 @@ import org.json.JSONObject;
* Upgrade script from v3.3.0 to v3.4.0.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Mar 29, 2019
* @version 1.0.0.1, Mar 31, 2019
* @since 3.5.0
*/
public final class V340_350 {
......@@ -59,12 +59,30 @@ public final class V340_350 {
optionRepository.remove("skinName");
optionRepository.remove("skins");
final JSONObject skinOpt = optionRepository.get(Option.ID_C_SKIN_DIR_NAME);
skinOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_SKIN);
optionRepository.update(Option.ID_C_SKIN_DIR_NAME, skinOpt);
final JSONObject mobileSkinOpt = optionRepository.get(Option.ID_C_MOBILE_SKIN_DIR_NAME);
mobileSkinOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_SKIN);
optionRepository.update(Option.ID_C_MOBILE_SKIN_DIR_NAME, mobileSkinOpt);
JSONObject skinDirNameOpt = optionRepository.get(Option.ID_C_SKIN_DIR_NAME);
if (null == skinDirNameOpt) {
skinDirNameOpt = new JSONObject();
skinDirNameOpt.put(Keys.OBJECT_ID, Option.ID_C_SKIN_DIR_NAME);
skinDirNameOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_SKIN);
skinDirNameOpt.put(Option.OPTION_VALUE, Option.DefaultPreference.DEFAULT_SKIN_DIR_NAME);
optionRepository.add(skinDirNameOpt);
} else {
skinDirNameOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_SKIN);
optionRepository.update(Option.ID_C_SKIN_DIR_NAME, skinDirNameOpt);
}
JSONObject mobileSkinDirNameOpt = optionRepository.get(Option.ID_C_MOBILE_SKIN_DIR_NAME);
if (null == mobileSkinDirNameOpt) {
mobileSkinDirNameOpt = new JSONObject();
mobileSkinDirNameOpt.put(Keys.OBJECT_ID, Option.ID_C_MOBILE_SKIN_DIR_NAME);
mobileSkinDirNameOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_SKIN);
mobileSkinDirNameOpt.put(Option.OPTION_VALUE, Option.DefaultPreference.DEFAULT_MOBILE_SKIN_DIR_NAME);
optionRepository.add(mobileSkinDirNameOpt);
} else {
mobileSkinDirNameOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_SKIN);
optionRepository.update(Option.ID_C_MOBILE_SKIN_DIR_NAME, mobileSkinDirNameOpt);
}
JSONObject hljsThemeOpt = optionRepository.get(Option.ID_C_HLJS_THEME);
if (null == hljsThemeOpt) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment