br: remove alter-primary-key configuration#853
Conversation
|
you need to change the also the sanity tests in |
|
I notice that the option |
|
@tangenta yes that too. since now alter-pk is opt-in, some DDL statements in |
|
/lgtm |
mysql> create table t (a int primary key nonclustered, b int unique);
Query OK, 0 rows affected (0.02 sec)
mysql> insert into t values (42, 42);
Query OK, 1 row affected (0.01 sec)
mysql> alter table t drop primary key;
ERROR 8200 (HY000): Unsupported drop primary key when alter-primary-key is falseThis is because pingcap/tidb#23270 is not merged. We should merge one first since these two PRs depend on each other. |
|
@tangenta why 23270 depends on this PR? |
|
Because TiDB depends on BR and 23270 removes the OK, let me bring back |
|
@tangenta please help resolve conflict |
|
/cc @kennytm @overvenus PTAL if free thanks |
|
/lgtm |
|
/merge |
|
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-5.0 in PR #897 |
What problem does this PR solve?
pingcap/tidb#23270 will deprecate the
alter-primary-keyconfig.What is changed and how it works?
Check List
Tests
Code changes
NA
Side effects
Related changes
NA
Release Note