Commit 215591cd authored by Liang Ding's avatar Liang Ding

🐛 修复 v2.9.9-v3.0.0 升级脚本问题

parent d126ca34
...@@ -58,7 +58,7 @@ import java.util.Set; ...@@ -58,7 +58,7 @@ import java.util.Set;
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/e">Dongxu Wang</a> * @author <a href="https://hacpai.com/member/e">Dongxu Wang</a>
* @version 1.2.0.36, Feb 16, 2019 * @version 1.2.1.0, Feb 17, 2019
* @since 1.2.0 * @since 1.2.0
*/ */
@Service @Service
...@@ -192,8 +192,8 @@ public class UpgradeService { ...@@ -192,8 +192,8 @@ public class UpgradeService {
Statement statement = connection.createStatement(); Statement statement = connection.createStatement();
final String tablePrefix = Latkes.getLocalProperty("jdbc.tablePrefix") + "_"; final String tablePrefix = Latkes.getLocalProperty("jdbc.tablePrefix") + "_";
statement.executeUpdate("ALTER TABLE `" + tablePrefix + "user` ADD COLUMN `userB3Key` VARCHAR(64) NOT NULL"); statement.executeUpdate("ALTER TABLE `" + tablePrefix + "user` ADD COLUMN `userB3Key` VARCHAR(64) DEFAULT '' NOT NULL");
statement.executeUpdate("ALTER TABLE `" + tablePrefix + "user` ADD COLUMN `userGitHubId` VARCHAR(32) NOT NULL"); statement.executeUpdate("ALTER TABLE `" + tablePrefix + "user` ADD COLUMN `userGitHubId` VARCHAR(32) DEFAULT '' NOT NULL");
statement.close(); statement.close();
connection.commit(); connection.commit();
connection.close(); connection.close();
......
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