-
Notifications
You must be signed in to change notification settings - Fork 4.1k
workload/schemachange: add fk constraints #57472
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
Implement the addForiegnKeyConstraint operation to add a foreign key constraint between two columns. To ensure that
there are enough parent columns (which need to have a unique constraint), it would be beneficial to implement a addUniqueConstraint operation as well.
The following ops will need to be updated because they interact with foreign keys:
- insertRow - verify if inserting data will result in a pgcode.ForeignKeyViolation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)