Skip to content

Commit 763c267

Browse files
added plan debug logs
1 parent 934abfa commit 763c267

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/ydb/migrate.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func (p *planApply) PlanChanges(
3333
changes []schema.Change,
3434
opts ...migrate.PlanOption,
3535
) (*migrate.Plan, error) {
36+
fmt.Printf("[PLAN CHANGES]")
3637
state := &state{
3738
conn: p.conn,
3839
Plan: migrate.Plan{
@@ -229,6 +230,9 @@ func (s *state) modifyTable(modify *schema.ModifyTable) error {
229230
}
230231
}
231232

233+
fmt.Printf("[PLAN CHANGES] drop indexes %+v", dropIndexOps)
234+
fmt.Printf("[PLAN CHANGES] add indexes %+v", addIndexOps)
235+
232236
// Drop indexes first, then alter table, then add indexes
233237
if err := s.dropIndexes(modify, modify.T, dropIndexOps...); err != nil {
234238
return err

0 commit comments

Comments
 (0)