github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/dm/tests/shardddl3_1/conf/tidb-alter-pk-config.toml (about) 1 # TiDB Configuration. 2 3 # alter-primary-key is used to control alter primary key feature. Default is false, indicate the alter primary key feature is disabled. 4 # If it is true, we can add the primary key by "alter table". However, if a table already exists before the switch is turned true and the data type of its primary key column is an integer, 5 # the primary key cannot be dropped. 6 alter-primary-key = true