Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect auto_index keys in crdb #99

Merged
merged 1 commit into from
Nov 4, 2020
Merged

Respect auto_index keys in crdb #99

merged 1 commit into from
Nov 4, 2020

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Sep 3, 2020

This patch reverts a behavior introduced earlier and adds a test to prevent future regressions. With this patch, it is possible to use change_column on columns with foreign key references but without explicitly defined indices. Without this patch, those changes fail because CRDB needs an index on the referencing column when creating foreign key checks.

Closes #98

This patch reverts a behavior introduced earlier and adds a test to prevent future regressions. With this patch, it is possible to use `change_column` on columns with foreign key references but without explicitly defined indices. Without this patch, those changes fail because CRDB needs an index on the referencing column when creating foreign key checks.

Closes #98
@aeneasr aeneasr added the bug Something isn't working label Sep 3, 2020
@aeneasr aeneasr requested a review from a team as a code owner September 3, 2020 09:43
@aeneasr aeneasr self-assigned this Sep 3, 2020
@aeneasr
Copy link
Member Author

aeneasr commented Oct 23, 2020

@stanislas-m could you give this some 👀 ? :)

@stanislas-m
Copy link
Member

Sure, I'll take a look this weekend. Sorry for the delay.

@stanislas-m stanislas-m self-assigned this Oct 29, 2020
@stanislas-m stanislas-m merged commit 3416f0e into master Nov 4, 2020
@stanislas-m stanislas-m deleted the fix-crdb-index branch November 4, 2020 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate missing index on auto-create foreign keys
2 participants