Skip to content

Commit

Permalink
[parser] Add more fields in DiffSchema for exchanging partition (ping…
Browse files Browse the repository at this point in the history
…cap#883)

Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: kennytm <kennytm@gmail.com>
Co-authored-by: tiancaiamao <tiancaiamao@gmail.com>
  • Loading branch information
4 people authored and ti-chi-bot committed Oct 9, 2021
1 parent 027524a commit 320651b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions parser/model/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,14 @@ type SchemaDiff struct {
OldTableID int64 `json:"old_table_id"`
// OldSchemaID is the schema ID before rename table, only used by rename table DDL.
OldSchemaID int64 `json:"old_schema_id"`

AffectedOpts []*AffectedOption `json:"affected_options"`
}

// AffectedOption is used when a ddl affects multi tables.
type AffectedOption struct {
SchemaID int64 `json:"schema_id"`
TableID int64 `json:"table_id"`
OldTableID int64 `json:"old_table_id"`
OldSchemaID int64 `json:"old_schema_id"`
}

0 comments on commit 320651b

Please sign in to comment.