Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more fields in DiffSchema for exchanging partition #883

Merged
merged 18 commits into from
Jun 9, 2020
10 changes: 10 additions & 0 deletions 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"`

AffectOpts []*AffectOption `json:"other_affect_options"`
zimulala marked this conversation as resolved.
Show resolved Hide resolved
}

// AffectOption is used when a ddl affects multi tables.
type AffectOption struct {
zimulala marked this conversation as resolved.
Show resolved Hide resolved
SchemaID int64 `json:"schema_id"`
TableID int64 `json:"table_id"`
OldTableID int64 `json:"old_table_id"`
OldSchemaID int64 `json:"old_schema_id"`
}