forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workload/schemachange: enable drop column support
Previously, drop column support was disabled because we did not properly detect if a column was referenced by foreign keys. We also did not properly detect if removing a column would remove indexes needed to enforce other foreign keys. This patch adds logic if a column or any indexes referencing this column are used by foreign keys. Additionally, other operations are tweaked to allow tables without columns (i.e. all columns dropped only leaving rowid). Fixes: cockroachdb#127286 Release note: None <pkg>: <short description - lowercase, no final period> <what was there before: Previously, ...> <why it needed to change: This was inadequate because ...> <what you did about it: To address this, this patch ...>
- Loading branch information
Showing
3 changed files
with
214 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters