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:
parent
a6873f807c
commit
66dfc8c6ca
4 changed files with 659 additions and 724 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue