diff --git a/model/model.go b/model/model.go index 4b9229d0e..97efe4322 100644 --- a/model/model.go +++ b/model/model.go @@ -216,13 +216,18 @@ type TableInfo struct { Indices []*IndexInfo `json:"index_info"` ForeignKeys []*FKInfo `json:"fk_info"` State SchemaState `json:"state"` - PKIsHandle bool `json:"pk_is_handle"` - Comment string `json:"comment"` - AutoIncID int64 `json:"auto_inc_id"` - AutoIdCache int64 `json:"auto_id_cache"` - AutoRandID int64 `json:"auto_rand_id"` - MaxColumnID int64 `json:"max_col_id"` - MaxIndexID int64 `json:"max_idx_id"` + // PKIsHandle is true when primary key is a single integer column. + PKIsHandle bool `json:"pk_is_handle"` + // IsCommonHandle is true when clustered index feature is + // enabled and the primary key is not a single integer column. + IsCommonHandle bool `json:"is_common_handle"` + + Comment string `json:"comment"` + AutoIncID int64 `json:"auto_inc_id"` + AutoIdCache int64 `json:"auto_id_cache"` + AutoRandID int64 `json:"auto_rand_id"` + MaxColumnID int64 `json:"max_col_id"` + MaxIndexID int64 `json:"max_idx_id"` // UpdateTS is used to record the timestamp of updating the table's schema information. // These changing schema operations don't include 'truncate table' and 'rename table'. UpdateTS uint64 `json:"update_timestamp"`