SDK v3 #8
@ -110,13 +110,11 @@ func migrateDatabase(ctx context.Context, dbPool *gorm.DB, config models.Databas
|
||||
return utils.HandleError(ctx, span, localLogger, err)
|
||||
}
|
||||
|
||||
if config.Debug {
|
||||
if n != 0 {
|
||||
localLogger.Debugf("applied %d migrations!", n)
|
||||
} else {
|
||||
localLogger.Debug("nothing to migrate")
|
||||
}
|
||||
}
|
||||
|
||||
utils.HandleEvent(span, localLogger, "Database migration completed successfully")
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user