1
0
Fork 0
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:
Elliott Stoneham 2016-07-27 18:48:29 +01:00
parent 66dfc8c6ca
commit c551647340
3 changed files with 84 additions and 30 deletions

View file

@ -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
}