mirror of
https://github.com/documize/community.git
synced 2025-07-21 22:29:41 +02:00
wip lock/unlock DB for migration
This commit is contained in:
parent
66dfc8c6ca
commit
c551647340
3 changed files with 84 additions and 30 deletions
|
@ -116,8 +116,7 @@ func Create(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
if err = Migrate(false, /* no tables exist yet */
|
||||
true /* and we must be the only instance 1st time through */); err != nil {
|
||||
if err = Migrate(false /* no tables exist yet */); err != nil {
|
||||
log.Error("database.Create()", err)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue