mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
remove debug logger
This commit is contained in:
parent
0e5d9528be
commit
f1082dafed
1 changed files with 0 additions and 9 deletions
|
@ -7,9 +7,7 @@ import (
|
|||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"ariga.io/atlas/sql/migrate"
|
||||
atlas "ariga.io/atlas/sql/migrate"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
"github.com/hay-kot/homebox/backend/app/api/static/docs"
|
||||
"github.com/hay-kot/homebox/backend/internal/core/services"
|
||||
|
@ -96,13 +94,6 @@ func run(cfg *config.Config) error {
|
|||
schema.WithDropColumn(true),
|
||||
schema.WithDropIndex(true),
|
||||
schema.WithAtlas(true),
|
||||
schema.WithApplyHook(func(next schema.Applier) schema.Applier {
|
||||
return schema.ApplyFunc(func(ctx context.Context, conn dialect.ExecQuerier, plan *migrate.Plan) error {
|
||||
// Log the plan.
|
||||
log.Info().Msgf("Applying migration %s", plan.Version)
|
||||
return next.Apply(ctx, conn, plan)
|
||||
})
|
||||
}),
|
||||
}
|
||||
|
||||
err = c.Schema.Create(context.Background(), options...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue