Commit Graph

59 Commits

Author SHA1 Message Date
c6103886b1 *: enable all gosimples (#35762)
ref pingcap/tidb#35345
2022-06-29 11:54:39 +08:00
2c4d1dfd36 ddl: implement the core for multi-schema change (#35429)
ref pingcap/tidb#14766
2022-06-24 19:34:38 +08:00
b3475f2570 ddl: add front-end checks for multi-schema change (#35358)
ref pingcap/tidb#14766
2022-06-15 11:04:33 +08:00
fb67ee4412 ddl: add data structure SubJob for multi-schema change (#35231)
ref pingcap/tidb#14766
2022-06-10 12:36:30 +08:00
93859ddff0 ddl: correct the job.SchemaState in DROP cases (#34235)
ref pingcap/tidb#32939
2022-04-28 12:14:51 +08:00
ffa4ba91e3 parser: turn some functions into member functions of model.Job (#34175)
ref pingcap/tidb#31716
2022-04-24 14:42:49 +08:00
67b073425f ddl: fix inappropriate schema state output by admin show ddl jobs (#33850)
ref pingcap/tidb#23494, close pingcap/tidb#24420
2022-04-11 15:26:34 +08:00
0d7602eb65 *: fix http api document and a comment (#33834)
close pingcap/tidb#33833
2022-04-11 13:50:34 +08:00
be76f885e6 ddl, parser: fix concurrent rename table (#33354)
close pingcap/tidb#32610
2022-04-07 17:48:33 +08:00
1624123b84 *: fix time zone problems encountered when changing the other type columns to timestamp type columns (#31843)
close pingcap/tidb#29585
2022-02-21 23:11:42 +08:00
c8bef987ae *: support variable tidb_last_ddl_info (#32414)
close pingcap/tidb#32402
2022-02-17 16:43:40 +08:00
e50e03c92c parser, ddl: update the DDL job's Location structure (#31199)
close pingcap/tidb#31212
2022-01-03 14:53:51 +08:00
xhe
4f30a14256 ddl: support batch create table (#28763) 2021-12-31 17:13:50 +08:00
6e6db1fd35 binlog: allow multiple ddl targets (#30904) 2021-12-24 12:55:47 +08:00
93e2c12346 *: Rename some names of placement ddl operation (#30622) 2021-12-11 00:41:57 +08:00
28446605c2 expression: fix tidb can't alter table from other-type with null value to timestamp with NOT NULL attribute (#29664) 2021-12-03 15:57:54 +08:00
a90c98816e ddl: fix none info of alter table placement (#29929) 2021-11-24 16:53:53 +08:00
a237e41d9f ddl : support alter table xx nocache operations switch a table into uncacheable (#29621) 2021-11-11 17:19:06 +08:00
49d995d577 *: Remove ALTER TABLE ... ALTER PARTITION ... (#29556) 2021-11-08 18:05:04 +08:00
a3f3924388 parser: support analyze/stats options when create/alter table (#29056) 2021-10-27 14:54:49 +08:00
1777bd0e86 ddl : support alter table xx cache operations (#29022) 2021-10-25 22:08:48 +08:00
1bde14a6e9 *: Finish alter placement for objects (#28982) 2021-10-25 20:54:49 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
db3b91a0b6 [parser] *: Support syntax of "CREATE/ALTER DATABASE [DEFAULT] PLACEMENT POLICY ..." (#1351) 2021-10-09 14:53:23 +08:00
f4591b0e80 [parser] model: support database placement option and partition placement option (#1342) 2021-10-09 14:53:23 +08:00
1057322cf7 [parser] parser: support create and alter placement policy (#1313) 2021-10-09 14:53:23 +08:00
97cde8c296 [parser] Model: add the new field to the Job Struct. (#1273) 2021-10-09 14:53:23 +08:00
386287d9b4 [parser] Support add/drop attributes for table or partition (#1271) 2021-10-09 14:53:23 +08:00
83a9450089 [parser] Remove useless const AddIndexStr,AddPrimaryKeyStr (#1275)
Signed-off-by: JaySon-Huang <tshent@qq.com>
2021-10-09 14:53:23 +08:00
c298f32dd3 [parser] ddl: admin show ddl jobs output confusing with multiple jobs (#1210)
* change "none" 2 "queueing"

Signed-off-by: lihaowei <haoweili35@gmail.com>

* 4 review

Signed-off-by: lihaowei <haoweili35@gmail.com>

* restore origin word

* *: change none 2 queueing
2021-10-09 14:53:23 +08:00
0ab86feca6 [parser] add ActionType: ActionDropIndexes (#1186) 2021-10-09 14:53:23 +08:00
eb188bac29 [parser] ddl: support multiple table rename (#1021) 2021-10-09 14:53:23 +08:00
xhe
527317804e [parser] model: add an extra field on Job for passing argumens (#1052) 2021-10-09 14:53:23 +08:00
0c0b9d0e05 [parser] model: add SQL mode and warnings field for ddl job (#1031) 2021-10-09 14:53:23 +08:00
xhe
c307c0dab5 [parser] parser: support ALTER PARTITION clause (#921) 2021-10-09 14:53:23 +08:00
329541ccbd [parser] parser: support alter table add/drop/alter constraint (#899) 2021-10-09 14:53:23 +08:00
1bbc918016 [parser] model: correct the usage of json.Unmarshal in DecodeArgs (#890) 2021-10-09 14:53:23 +08:00
320651b789 [parser] Add more fields in DiffSchema for exchanging partition (#883)
Co-authored-by: Lynn <zimu_xia@126.com>
Co-authored-by: kennytm <kennytm@gmail.com>
Co-authored-by: tiancaiamao <tiancaiamao@gmail.com>
2021-10-09 14:53:23 +08:00
56449d183d [parser] *: Add ddl Action Exchange partition (#852)
* add action of exchange partition

* delete warn

* recreat parser.go
2021-10-09 14:53:23 +08:00
9ad0d12a08 [parser] parser: add new ddl action AlterIndexVisibility (#840) 2021-10-09 14:53:23 +08:00
96e2a03403 [parser] parser: rename auto rand table option (#828) 2021-10-09 14:53:23 +08:00
97e61aea57 [parser] parser: add auto_random table option support (#823)
* add auto_random table option support

* .

* .
2021-10-09 14:53:23 +08:00
22fc63f328 [parser] parser: add autoid cache option (#765) 2021-10-09 14:53:23 +08:00
79eff12f73 [parser] add new action ActionDropColumns (#786) 2021-10-09 14:53:23 +08:00
e7a686be57 [parser] Add new ddl action ActionAddColumns (#784) 2021-10-09 14:53:23 +08:00
f7f50a28a7 [parser] DDL : add create sequence support & compatible with mariaDB except OrReplace. (#658)
* add create sequence support

* fix conflict

* be compatible with mariaDB

* add SignedNum and reformat indent

* add sequence test

* .

* address comment

* not support orreplace by now

* add sequence ddl

* add ddl restore test

* add : no cycle/no cache/no order

* .

* fix ident
2021-10-09 14:53:23 +08:00
a98bbab0f8 [parser] *: spport primary key (#617) 2021-10-09 14:53:23 +08:00
24a0caa4af [parser] *: suport alter table set flash replica syntax (#564) 2021-10-09 14:53:23 +08:00
ef25c58596 [parser] parser : support admin repair table syntax (#547)
* support admin repair table

* fix comment

* add ddl test

* fix depency
2021-10-09 14:53:23 +08:00
d6e9870e73 [parser] model: add schema name, table name to ddl job (#422)
* model: add schema name, table name to ddl job

* remove table name
2021-10-09 14:53:23 +08:00