This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
test database is connect OK after db config initialized (
#239
)
for-closed-social
Lunny Xiao
8 years ago
committed by
GitHub
parent
ba2e75a0ab
commit
450969c158
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
models/models.go
+ 4
- 0
models/models.go
View File
@ -196,6 +196,10 @@ func NewEngine() (err error) {
return
err
}
if
err
=
x
.
Ping
(
)
;
err
!=
nil
{
return
err
}
if
err
=
migrations
.
Migrate
(
x
)
;
err
!=
nil
{
return
fmt
.
Errorf
(
"migrate: %v"
,
err
)
}
Write
Preview
Loading…
Cancel
Save