forked from pingcap/dm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix unstabled drop then add column (pingcap#1548) (pingcap#1549)
- Loading branch information
Showing
4 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
tests/sequence_sharding_optimistic/data/db1.increment2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
use `sharding_seq_opt`; | ||
|
||
alter table t2 add column c1 varchar(20); | ||
-- at this point: | ||
-- t1(id, c2, c3) | ||
-- t2(id, c1, c2, c3) | ||
insert into t2 (id, c1, c2, c3) values (200008, '210008', '220008', 230008); | ||
insert into t1 (id, c2, c3) values (100008, '120008', 130008); | ||
|
||
alter table t2 drop column c1; | ||
-- at this point: | ||
-- t1(id, c2, c3) | ||
-- t2(id, c2, c3) | ||
insert into t1 (id, c2, c3) values (100010, '120010', 130010); | ||
insert into t2 (id, c2, c3) values (200010, '220010', 230010); | ||
insert into t1 (id, c2, c3) values (100009, '120009', 130009); | ||
insert into t2 (id, c2, c3) values (200009, '220009', 230009); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters