Skip to content

Conversation

@jycor
Copy link
Contributor

@jycor jycor commented Jan 26, 2024

Our logic for preventing DROPs on a table if that table was referenced in a FOREIGN KEY did not account for when the table was self referencing. This PR fixes that and closes the gap in our testing for this area.

fixes dolthub/dolt#7418

@jycor jycor changed the title allow foreign keys with self referential foreign keys to be dropped allow tables with self referential foreign keys to be dropped Jan 26, 2024
Copy link
Contributor

@fulghum fulghum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Nice fix 🚀

@jycor jycor merged commit f749180 into main Jan 26, 2024
@jycor jycor deleted the james/fks branch January 26, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to drop table with self referential foreign key

2 participants