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

Rework dropForeign to use new tokenized structure #4376

Merged
merged 1 commit into from Mar 15, 2021
Merged

Conversation

rijkvanzanten
Copy link
Collaborator

@rijkvanzanten rijkvanzanten commented Mar 15, 2021

Fix dropForeign not working as expected in SQLite. Uses the new setup introduced by @nickrum .

Fixes #4369, fixes directus/directus#4489

@kibertoad
Copy link
Collaborator

Can we also fix test to fail properly?

@rijkvanzanten
Copy link
Collaborator Author

rijkvanzanten commented Mar 15, 2021

It already did! @nickrum figured out that the reason the test "failed successfully" was because of the fact that dropForeign would delete all foreign keys when a foreign key name was passed. This would cause the test to pass for the wrong reason 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SQLite] dropForeign is silently ignored SQLite login error "Invalid foreign key."
2 participants