-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: remove alter-primary-key configuration #5105
Conversation
/translation from-docs-cn |
tidb-configuration-file.md
Outdated
|
||
- Determines whether to add or remove the primary key constraint to or from a column. | ||
- Default value: `false` | ||
- With this default setting, adding or removing the primary key constraint is not supported. You can enable this feature by setting `alter-primary-key` to `true`. However, if a table already exists before the switch is on, and the data type of its primary key column is an integer, dropping the primary key from the column is not possible even if you set this configuration item to `true`. | ||
|
||
> **Note:** | ||
> | ||
> This configuration item no longer takes effect. If you need to add or delete the primary key, use `NONCLUSTERED` instead. For more details about the primary key of the `CLUSTERED` type, refer to [clustered index](/clustered-indexes.md). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TomShawn PTAL again thx!
Co-authored-by: TomShawn <[email protected]>
rest |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
Co-authored-by: TomShawn <[email protected]>
/label require-LGT1 |
@tangenta PTAL, thanks! |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: fc64a41
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0 in PR #5141 |
First-time contributors' checklist
What is changed, added or deleted? (Required)
The
alter-primary-key
config option is deprecated & removed in v5.0, this PR updates the related documentation.Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?