Skip to content

Commit bf2ce32

Browse files
added plan debug logs
1 parent 934abfa commit bf2ce32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/ydb/migrate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func (p *planApply) PlanChanges(
4949
if err := sqlx.SetReversible(&state.Plan); err != nil {
5050
return nil, err
5151
}
52+
fmt.Printf("[PLAN CHANGES] name=%s, changes=%+v, opts=%+v\n", name, changes, opts)
5253
return &state.Plan, nil
5354
}
5455

@@ -60,6 +61,7 @@ func (p *planApply) ApplyChanges(
6061
changes []schema.Change,
6162
opts ...migrate.PlanOption,
6263
) error {
64+
fmt.Printf("[APPLY CHANGES] changes=%+v, opts=%+v\n", changes, opts)
6365
return sqlx.ApplyChanges(ctx, changes, p, opts...)
6466
}
6567

0 commit comments

Comments
 (0)