Skip to content

sql: Support ALTER TABLE __ ADD CONSTRAINT __ FOREIGN KEY __ statements #8855

@nvb

Description

@nvb

The ALTER TABLE __ ADD CONSTRAINT __ FOREIGN KEY __ statement type is used by a few different ORMs including Hibernate to manage FK constraints. It is currently unsupported by CockroachDB.

This is related to the larger issue in #8773, but I wanted to split it out into a separate issue for easier tracking.

Metadata

Metadata

Labels

A-schema-changesA-sql-pgcompatSemantic compatibility with PostgreSQLA-sql-semanticsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.X-anchored-telemetryThe issue number is anchored by telemetry references.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions