Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
215591cd
Unverified
Commit
215591cd
authored
Feb 17, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 v2.9.9-v3.0.0 升级脚本问题
parent
d126ca34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/main/java/org/b3log/solo/service/UpgradeService.java
src/main/java/org/b3log/solo/service/UpgradeService.java
+3
-3
No files found.
src/main/java/org/b3log/solo/service/UpgradeService.java
View file @
215591cd
...
...
@@ -58,7 +58,7 @@ import java.util.Set;
*
* @author <a href="http://88250.b3log.org">Liang Ding</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
*/
@Service
...
...
@@ -192,8 +192,8 @@ public class UpgradeService {
Statement
statement
=
connection
.
createStatement
();
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 `userGitHubId` VARCHAR(32) 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)
DEFAULT ''
NOT NULL"
);
statement
.
close
();
connection
.
commit
();
connection
.
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment