Commit a56e2714 authored by Liang Ding's avatar Liang Ding

🔖 发布 v2.9.5

parent 85311616
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: Solo POM.
Version: 3.18.3.25, Sep 30, 2018
Version: 3.18.3.26, Oct 10, 2018
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>
......@@ -15,7 +15,7 @@
<artifactId>solo</artifactId>
<packaging>war</packaging>
<name>Solo</name>
<version>2.9.4</version>
<version>2.9.5</version>
<description>
一款小而美的 Java 博客系统。
</description>
......
......@@ -51,7 +51,7 @@ import java.util.Set;
* Solo Servlet listener.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.9.3.42, Oct 5, 2018
* @version 1.9.3.43, Oct 10, 2018
* @since 0.3.1
*/
public final class SoloServletListener extends AbstractServletListener {
......@@ -64,7 +64,7 @@ public final class SoloServletListener extends AbstractServletListener {
/**
* Solo version.
*/
public static final String VERSION = "2.9.4";
public static final String VERSION = "2.9.5";
/**
* Bean manager.
......
......@@ -28,7 +28,6 @@ import org.b3log.latke.mail.MailServiceFactory;
import org.b3log.latke.model.User;
import org.b3log.latke.repository.Query;
import org.b3log.latke.repository.Transaction;
import org.b3log.latke.repository.jdbc.JdbcRepository;
import org.b3log.latke.repository.jdbc.util.Connections;
import org.b3log.latke.service.LangPropsService;
import org.b3log.latke.service.annotation.Service;
......@@ -57,7 +56,7 @@ import java.util.List;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @version 1.2.0.29, Sep 16, 2018
* @version 1.2.0.30, Oct 10, 2018
* @since 1.2.0
*/
@Service
......@@ -81,7 +80,7 @@ public class UpgradeService {
/**
* Old version.
*/
private static final String FROM_VER = "2.9.3";
private static final String FROM_VER = "2.9.4";
/**
* New version.
......@@ -187,17 +186,6 @@ public class UpgradeService {
LOGGER.log(Level.INFO, "Upgrading from version [{0}] to version [{1}]....", FROM_VER, TO_VER);
try {
alterTables();
JdbcRepository.dispose(); // avoid to metadata lock
upgradeArticles();
upgradeComments();
JdbcRepository.dispose(); // avoid to metadata lock
dropColumns();
JdbcRepository.dispose(); // avoid to metadata lock
articleCache.clear();
commentCache.clear();
final Transaction transaction = optionRepository.beginTransaction();
final JSONObject versionOpt = optionRepository.get(Option.ID_C_VERSION);
versionOpt.put(Option.OPTION_VALUE, TO_VER);
......
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