From 438ba28acb8998ec181daca8207f178a2bc18906 Mon Sep 17 00:00:00 2001 From: gmhdbjd Date: Thu, 13 Aug 2020 16:27:17 +0800 Subject: [PATCH 1/6] add primary/unqiue key check --- en/precheck.md | 2 ++ zh/precheck.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/en/precheck.md b/en/precheck.md index 78d916a11..d962325e6 100644 --- a/en/precheck.md +++ b/en/precheck.md @@ -43,6 +43,8 @@ Upstream and downstream database users must have the corresponding read and writ - TiDB does not support the foreign key. - [Character set compatibility differs](https://pingcap.com/docs/stable/reference/sql/character-set/). + DM will also check primary/unqiue key exists for all upstream tables, supported since v1.0.7 + + The consistency of the sharded tables in the multiple upstream MySQL instances + The schema consistency of all sharded tables diff --git a/zh/precheck.md b/zh/precheck.md index f38bf4a71..9f2372c70 100644 --- a/zh/precheck.md +++ b/zh/precheck.md @@ -43,6 +43,8 @@ aliases: ['/docs-cn/tidb-data-migration/dev/precheck/'] - TiDB 不支持外键 - 字符集的兼容性不同,详见 [TiDB 支持的字符集](https://pingcap.com/docs-cn/dev/reference/sql/character-set/) + DM 还会检查上游表中是否存在主键或 Unique 约束, 在 v1.0.7 版本引入 + + 上游 MySQL 多实例分库分表的一致性 + 所有分表的表结构是否一致,检查内容包括: From 27d4eb341c13d9fe98cab352ea0eef85d33fabc9 Mon Sep 17 00:00:00 2001 From: gmhdbjd Date: Thu, 13 Aug 2020 17:32:39 +0800 Subject: [PATCH 2/6] address comment --- zh/precheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/precheck.md b/zh/precheck.md index 9f2372c70..aea41f6f5 100644 --- a/zh/precheck.md +++ b/zh/precheck.md @@ -43,7 +43,7 @@ aliases: ['/docs-cn/tidb-data-migration/dev/precheck/'] - TiDB 不支持外键 - 字符集的兼容性不同,详见 [TiDB 支持的字符集](https://pingcap.com/docs-cn/dev/reference/sql/character-set/) - DM 还会检查上游表中是否存在主键或 Unique 约束, 在 v1.0.7 版本引入 + DM 还会检查上游表中是否存在主键或唯一键约束, 在 v1.0.7 版本引入 + 上游 MySQL 多实例分库分表的一致性 From 91e05e6bc31cbe063042f70452b8c03c5e611a6d Mon Sep 17 00:00:00 2001 From: GMHDBJD <35025882+GMHDBJD@users.noreply.github.com> Date: Thu, 13 Aug 2020 17:33:02 +0800 Subject: [PATCH 3/6] Update en/precheck.md Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com> --- en/precheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/precheck.md b/en/precheck.md index d962325e6..ada4b7903 100644 --- a/en/precheck.md +++ b/en/precheck.md @@ -43,7 +43,7 @@ Upstream and downstream database users must have the corresponding read and writ - TiDB does not support the foreign key. - [Character set compatibility differs](https://pingcap.com/docs/stable/reference/sql/character-set/). - DM will also check primary/unqiue key exists for all upstream tables, supported since v1.0.7 + DM will also check primary or unqiue key exists for all upstream tables, supported since v1.0.7 + The consistency of the sharded tables in the multiple upstream MySQL instances From 27051cc3ee99acba972825a33f203df22a09a5ce Mon Sep 17 00:00:00 2001 From: GMHDBJD <35025882+GMHDBJD@users.noreply.github.com> Date: Fri, 14 Aug 2020 10:03:47 +0800 Subject: [PATCH 4/6] Update zh/precheck.md Co-authored-by: ireneontheway <48651140+ireneontheway@users.noreply.github.com> --- zh/precheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/precheck.md b/zh/precheck.md index aea41f6f5..2513d34da 100644 --- a/zh/precheck.md +++ b/zh/precheck.md @@ -43,7 +43,7 @@ aliases: ['/docs-cn/tidb-data-migration/dev/precheck/'] - TiDB 不支持外键 - 字符集的兼容性不同,详见 [TiDB 支持的字符集](https://pingcap.com/docs-cn/dev/reference/sql/character-set/) - DM 还会检查上游表中是否存在主键或唯一键约束, 在 v1.0.7 版本引入 + DM 还会检查上游表中是否存在主键或唯一键约束, 在 v1.0.7 版本引入。 + 上游 MySQL 多实例分库分表的一致性 From cd91b6a2335ea1e82135bdaf2316552f232ad11d Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Mon, 17 Aug 2020 16:09:43 +0800 Subject: [PATCH 5/6] Update en/precheck.md --- en/precheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/precheck.md b/en/precheck.md index ada4b7903..c1686ba5d 100644 --- a/en/precheck.md +++ b/en/precheck.md @@ -43,7 +43,7 @@ Upstream and downstream database users must have the corresponding read and writ - TiDB does not support the foreign key. - [Character set compatibility differs](https://pingcap.com/docs/stable/reference/sql/character-set/). - DM will also check primary or unqiue key exists for all upstream tables, supported since v1.0.7 + DM will also check whether the primary key or unique key restriction exists in all upstream tables. This check is introduced in v1.0.7. + The consistency of the sharded tables in the multiple upstream MySQL instances From 636899bba6b71e55e72b45b7139fdc3a00162035 Mon Sep 17 00:00:00 2001 From: TomShawn <41534398+TomShawn@users.noreply.github.com> Date: Mon, 17 Aug 2020 16:11:40 +0800 Subject: [PATCH 6/6] Update zh/precheck.md --- zh/precheck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/precheck.md b/zh/precheck.md index 2513d34da..fc3640050 100644 --- a/zh/precheck.md +++ b/zh/precheck.md @@ -43,7 +43,7 @@ aliases: ['/docs-cn/tidb-data-migration/dev/precheck/'] - TiDB 不支持外键 - 字符集的兼容性不同,详见 [TiDB 支持的字符集](https://pingcap.com/docs-cn/dev/reference/sql/character-set/) - DM 还会检查上游表中是否存在主键或唯一键约束, 在 v1.0.7 版本引入。 + DM 还会检查上游表中是否存在主键或唯一键约束,在 v1.0.7 版本引入。 + 上游 MySQL 多实例分库分表的一致性