Commit b303926a authored by Liang Ding's avatar Liang Ding

🔖 发布 v2.9.7

parent 26c0029e
{ {
"name": "Solo", "name": "Solo",
"version": "2.9.6", "version": "2.9.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
{ {
"name": "Solo", "name": "Solo",
"version": "2.9.6", "version": "2.9.7",
"description": "A blogging system written in Java, feel free to create your or your team own blog. 一个用 Java 实现的博客系统,为你或你的团队创建个博客吧!", "description": "A blogging system written in Java, feel free to create your or your team own blog. 一个用 Java 实现的博客系统,为你或你的团队创建个博客吧!",
"homepage": "https://github.com/b3log/solo", "homepage": "https://github.com/b3log/solo",
"repository": { "repository": {
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Description: Solo POM. Description: Solo POM.
Version: 3.18.3.37, Dec 2, 2018 Version: 3.18.3.38, Dec 11, 2018
Author: <a href="http://88250.b3log.org">Liang Ding</a> Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a> Author: <a href="http://www.annpeter.cn">Ann Peter</a>
Author: <a href="http://vanessa.b3log.org">Vanessa</a> Author: <a href="http://vanessa.b3log.org">Vanessa</a>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<artifactId>solo</artifactId> <artifactId>solo</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<name>Solo</name> <name>Solo</name>
<version>2.9.6</version> <version>2.9.7</version>
<description> <description>
一款小而美的 Java 博客系统。 一款小而美的 Java 博客系统。
</description> </description>
......
...@@ -66,7 +66,7 @@ public final class SoloServletListener extends AbstractServletListener { ...@@ -66,7 +66,7 @@ public final class SoloServletListener extends AbstractServletListener {
/** /**
* Solo version. * Solo version.
*/ */
public static final String VERSION = "2.9.6"; public static final String VERSION = "2.9.7";
/** /**
* Bean manager. * Bean manager.
......
...@@ -56,7 +56,7 @@ import java.util.List; ...@@ -56,7 +56,7 @@ import java.util.List;
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a> * @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @version 1.2.0.31, Nov 15, 2018 * @version 1.2.0.32, Dec 11, 2018
* @since 1.2.0 * @since 1.2.0
*/ */
@Service @Service
...@@ -80,7 +80,7 @@ public class UpgradeService { ...@@ -80,7 +80,7 @@ public class UpgradeService {
/** /**
* Old version. * Old version.
*/ */
private static final String FROM_VER = "2.9.5"; private static final String FROM_VER = "2.9.6";
/** /**
* New version. * New version.
...@@ -191,14 +191,20 @@ public class UpgradeService { ...@@ -191,14 +191,20 @@ public class UpgradeService {
versionOpt.put(Option.OPTION_VALUE, TO_VER); versionOpt.put(Option.OPTION_VALUE, TO_VER);
optionRepository.update(Option.ID_C_VERSION, versionOpt); optionRepository.update(Option.ID_C_VERSION, versionOpt);
final JSONObject customVarsOpt = new JSONObject();
customVarsOpt.put(Keys.OBJECT_ID, Option.ID_C_CUSTOM_VARS);
customVarsOpt.put(Option.OPTION_CATEGORY, Option.CATEGORY_C_PREFERENCE);
customVarsOpt.put(Option.OPTION_VALUE, Option.DefaultPreference.DEFAULT_CUSTOM_VARS);
optionRepository.add(customVarsOpt);
transaction.commit(); transaction.commit();
LOGGER.log(Level.INFO, "Upgraded from version [{0}] to version [{1}] successfully :-)", FROM_VER, TO_VER);
} catch (final Exception e) { } catch (final Exception e) {
LOGGER.log(Level.ERROR, "Upgrade failed!", e); LOGGER.log(Level.ERROR, "Upgrade failed!", e);
throw new Exception("Upgrade failed from version [" + FROM_VER + "] to version [" + TO_VER + ']'); throw new Exception("Upgrade failed from version [" + FROM_VER + "] to version [" + TO_VER + ']');
} }
LOGGER.log(Level.INFO, "Upgraded from version [{0}] to version [{1}] successfully :-)", FROM_VER, TO_VER);
} }
private void alterTables() throws Exception { private void alterTables() throws Exception {
......
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