Skip to content

schemachanger: Support DROP INDEX with dependent FK constraint #96731

@Xiang-Gu

Description

@Xiang-Gu

If we were to drop a unique secondary index cascade and this unique index backed a FK constraint
in the referenced table, we should drop the index and the FK constraint. Presently, the declarative schema
changer just fallback. Now that we have supported dropping FK constraint, we should be able to support
this in the declarative schema changer.

Jira issue: CRDB-24297

Metadata

Metadata

Assignees

Labels

C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.T-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions