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
cafc6ca2
Unverified
Commit
cafc6ca2
authored
Mar 04, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
处理跨版本升级
parent
a4181a05
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/main/java/org/b3log/solo/upgrade/V300_310.java
src/main/java/org/b3log/solo/upgrade/V300_310.java
+2
-1
src/main/java/org/b3log/solo/upgrade/V310_320.java
src/main/java/org/b3log/solo/upgrade/V310_320.java
+1
-1
No files found.
src/main/java/org/b3log/solo/upgrade/V300_310.java
View file @
cafc6ca2
...
@@ -108,7 +108,8 @@ public final class V300_310 {
...
@@ -108,7 +108,8 @@ public final class V300_310 {
transaction
.
commit
();
transaction
.
commit
();
LOGGER
.
log
(
Level
.
INFO
,
"Upgraded from version [3.0.0] to version [3.1.0] successfully"
);
LOGGER
.
log
(
Level
.
INFO
,
"Upgraded from version [3.0.0] to version [3.1.0] successfully, please restart Solo"
);
System
.
exit
(
0
);
}
catch
(
final
Exception
e
)
{
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Upgrade failed!"
,
e
);
LOGGER
.
log
(
Level
.
ERROR
,
"Upgrade failed!"
,
e
);
...
...
src/main/java/org/b3log/solo/upgrade/V310_320.java
View file @
cafc6ca2
...
@@ -60,7 +60,7 @@ public final class V310_320 {
...
@@ -60,7 +60,7 @@ public final class V310_320 {
final
String
fromVer
=
"3.1.0"
;
final
String
fromVer
=
"3.1.0"
;
final
String
toVer
=
"3.2.0"
;
final
String
toVer
=
"3.2.0"
;
LOGGER
.
log
(
Level
.
INFO
,
"Upgrading from version ["
+
fromVer
+
"] to version ["
+
from
Ver
+
"]...."
);
LOGGER
.
log
(
Level
.
INFO
,
"Upgrading from version ["
+
fromVer
+
"] to version ["
+
to
Ver
+
"]...."
);
final
BeanManager
beanManager
=
BeanManager
.
getInstance
();
final
BeanManager
beanManager
=
BeanManager
.
getInstance
();
final
OptionRepository
optionRepository
=
beanManager
.
getReference
(
OptionRepository
.
class
);
final
OptionRepository
optionRepository
=
beanManager
.
getReference
(
OptionRepository
.
class
);
...
...
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