Commit Graph

49 Commits

Author SHA1 Message Date
53edd892a3 ddl: fix issue of partition table with foreign key and add more test case (#40122) 2022-12-23 13:04:14 +08:00
130568716e ddl: fix issue of add foreign key too slow in big table (#40112)
close pingcap/tidb#40111
2022-12-22 23:02:55 +08:00
ad0c202088 *: fix issue of multi-schema change with foreign key (#40042)
close pingcap/tidb#40037
2022-12-21 19:58:55 +08:00
d045b41d87 ttl,ddl: disable ttl for fk and temp table (#39581)
close pingcap/tidb#39351, close pingcap/tidb#39364
2022-12-02 18:22:01 +08:00
0470fa31f8 ddl: fix issue of add foreign key failed but doesn't rollback (#39583)
close pingcap/tidb#39582
2022-12-02 16:04:01 +08:00
863d35290c ddl: support add foreign key constraint with auto-create index (#38763)
close pingcap/tidb#38762
2022-11-01 20:27:59 +08:00
e8e37b388a ddl: make "add foreign key" step in multiple schema versions (#38679)
close pingcap/tidb#38678
2022-10-28 14:41:57 +08:00
d53a2ea21d ddl: fix issue when add foreign key ddl job (#38206)
close pingcap/tidb#38168
2022-09-28 17:45:45 +08:00
7b3c5037b5 ddl: add validate when do add foreign key ddl job (#38169)
close pingcap/tidb#38168
2022-09-27 14:37:44 +08:00
a4a58b80bb ddl: fix issue of rename tables with foreign key constraint (#38134)
close pingcap/tidb#38133
2022-09-27 12:19:44 +08:00
f55692093a ddl: fix issue of foreign key check block ddl (#38071)
close pingcap/tidb#38051
2022-09-22 10:37:02 +08:00
ba25fd5414 *: fix issue of drop database with foreign key failed (#38053)
close pingcap/tidb#38051
2022-09-21 23:55:05 +08:00
ab56dbef83 *: drop database should check foreign key constraint (#38006)
close pingcap/tidb#38005
2022-09-21 15:29:02 +08:00
2c35087811 ddl: rename column should update foreign key constrain (#37870)
close pingcap/tidb#37868
2022-09-20 15:19:04 +08:00
6d0bbe8985 ddl: add foreign key check when drop column (#37843)
close pingcap/tidb#37842
2022-09-16 15:39:01 +08:00
9a8272dc71 ddl: add foreign key check when modify column (#37823)
close pingcap/tidb#37821
2022-09-15 19:10:59 +08:00
f80a42d2d6 ddl: check index is needed in foreign key when drop index (#37813)
close pingcap/tidb#37812
2022-09-15 14:44:59 +08:00
3f77284ee4 ddl: add foreign key check when execute drop/truncate table (#37773)
close pingcap/tidb#37772
2022-09-14 16:50:59 +08:00
9036de3394 *: support create table with foreign key and maintain foreign key reference (#37148)
close pingcap/tidb#37147
2022-09-07 13:22:56 +08:00
96d2c25c92 ddl: implement intra-table DDL for SchemaTracker (#36176)
close pingcap/tidb#35933
2022-07-29 19:33:13 +08:00
911e7cc360 *: enable revive (#35970)
ref pingcap/tidb#35345
2022-07-15 16:03:06 +08:00
93859ddff0 ddl: correct the job.SchemaState in DROP cases (#34235)
ref pingcap/tidb#32939
2022-04-28 12:14:51 +08:00
161e835df9 ddl: add ddlCtx for ddl interface (#34153)
ref pingcap/tidb#33635
2022-04-24 13:32:48 +08:00
43c0622d42 ddl: rewrites some DDL tests (#33277)
ref pingcap/tidb#33008
2022-03-23 13:30:32 +08:00
a1d8f2f3ac *: remove ddl dependency (#32910)
ref pingcap/tidb#31716
2022-03-09 08:15:48 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
5886055b6b ddl: fix error code and error name (#13329) 2019-11-12 17:23:18 +08:00
33a961decf ddl: fix canceling model.ActionRebaseAutoID and model.ActionShardRowID ddl jobs (#9226) 2019-02-18 11:34:13 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
42675d97fb ddl: adjust the structure of ddl (#6449) 2018-06-14 17:13:50 +08:00
bd5309437e ddl, model: clean up (#5583)
* ddl: rename updateTableInfo to updateVerAndTblInfo and add finish function
2018-01-15 13:16:01 +08:00
6a8225787f *: update job state name (#4818) 2017-10-19 14:44:57 +08:00
cb4e3dd3d4 ddl: fix a version bug (#3800) 2017-07-19 13:08:13 +08:00
64830c93b7 ddl: Use etcd to synchronize schema version (#3322) 2017-05-27 16:42:19 +08:00
abe4413bb4 ddl: remove redundant update version (#2786) 2017-03-08 09:01:16 +08:00
217c26bd0b *: Support the statement of rename table (#2444) 2017-01-15 00:58:10 +08:00
6bc6f7e98b *: Add the field of history information in job structure (#2046) 2017-01-05 16:34:39 +08:00
99b3465c1e ddl: allocate column ID and index ID in TableInfo. (#2205) 2016-12-09 12:31:27 +08:00
ea894e8b77 *: Add a function GenByArgs for Error (#2033)
*: Add a function GenByArgs for Error
2016-11-27 13:18:43 +08:00
3b491f11bc ddl: Update error information and add tests (#1941) 2016-11-04 10:45:53 +08:00
b4e3e58693 *: Clean up (#1928)
* ddl: remove useless code, add and update comments
2016-11-03 11:40:14 +08:00
29fd1250ea drop foreign key that does not exist error (#1874) 2016-10-28 13:25:32 +08:00
b80ba788ca ddl: Add dbInfo and tblInfo in some operations of DDL (#1870) 2016-10-26 16:10:43 +08:00
d04dea2c57 *: use schema diff to reduce memory allocation (#1858)
When schema version has changed, we don't need to reload all schemas, only
modified table need to be reloaded, this will reduce the pressure on Go garbage collector.

Also removed used map in *inforSchema.
2016-10-24 15:17:44 +08:00
64e181286a ddl: Add table infomation and schema version to history job (#1857) 2016-10-24 14:58:17 +08:00
e742def024 add foreign key on update and on delete support (#1152)
* add foreign key on update and on delete support
2016-04-27 19:44:00 +08:00