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
5 changes: 5 additions & 0 deletions model/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,4 +429,9 @@ 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"`

// AffectedTableID is the table ID of partition table when exchanging partition
AffectedTableID int64 `json:"affected_table_id"`
zhaox1n marked this conversation as resolved.
Show resolved Hide resolved
// AffectedSchemaID is the schema ID of partition table when exchanging partition
AffectedSchemaID int64 `json:"affected_schema_id"`
}