1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 06:09:42 +02:00

mark follower instances with prefix of "-" on the db username

This commit is contained in:
Elliott Stoneham 2016-07-27 12:58:19 +01:00
parent a6873f807c
commit 66dfc8c6ca
4 changed files with 659 additions and 724 deletions

View file

@ -19,9 +19,9 @@ import (
"time"
"github.com/documize/community/core/api/util"
"github.com/documize/community/core/web"
"github.com/documize/community/core/log"
"github.com/documize/community/core/utility"
"github.com/documize/community/core/web"
)
// runSQL creates a transaction per call
@ -116,7 +116,8 @@ func Create(w http.ResponseWriter, r *http.Request) {
return
}
if err = Migrate(false /* no tables exist yet */); err != nil {
if err = Migrate(false, /* no tables exist yet */
true /* and we must be the only instance 1st time through */); err != nil {
log.Error("database.Create()", err)
return
}