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

adds cascading drop to ermrest model and unit tests #181

Merged
merged 4 commits into from
Sep 10, 2024
Merged

Conversation

robes
Copy link
Contributor

@robes robes commented Sep 6, 2024

No description provided.

deriva/core/ermrest_model.py Outdated Show resolved Hide resolved
1. drop a column with dependent foreign key constraint
2. drop a compound key with _reordered_ dependent foreign key constraint
- may be faster (1 instead of 3 POST requests)
- avoids using ermrest_model.py methods that may be under test
- cascading Column.drop must drop dependent fkeys too
- cascading Key.drop must detect dependent, compound fkeys using unordered comparison
@karlcz karlcz merged commit 7cf4bc9 into master Sep 10, 2024
@karlcz karlcz deleted the cascading_drop branch September 10, 2024 19:27
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.

2 participants