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

sync Keycloak users with Documize

This commit is contained in:
Harvey Kandola 2017-03-19 14:25:21 +00:00
parent b2620e80e1
commit 8c062d592a
11 changed files with 178 additions and 55 deletions

View file

@ -211,7 +211,7 @@ func Migrate(ConfigTableExists bool) error {
if err != nil {
return migrateEnd(tx, err, amLeader)
}
log.Info("Database checks: last previously applied file was " + lastMigration)
log.Info("Database checks: last applied " + lastMigration)
}
mig, err := migrations(lastMigration)
@ -220,7 +220,7 @@ func Migrate(ConfigTableExists bool) error {
}
if len(mig) == 0 {
log.Info("Database checks: no updates to perform")
log.Info("Database checks: no updates required")
return migrateEnd(tx, nil, amLeader) // no migrations to perform
}
@ -233,7 +233,7 @@ func Migrate(ConfigTableExists bool) error {
targetMigration := string(mig[len(mig)-1])
for targetMigration != lastMigration {
time.Sleep(time.Second)
log.Info("Waiting for database migration process to complete")
log.Info("Waiting for database migration completion")
tx.Rollback() // ignore error
tx, err := (*dbPtr).Beginx() // need this in order to see the changed situation since last tx
if err != nil {