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

Add options for foreign key attributes #302

Conversation

guzman-raphael
Copy link
Collaborator

Fix #110

  • Adds unique option for primary and nonprimary foreign key attributes
  • Adds nullable option for nonprimary foreign key attributes

For instance, the syntax to properly set within the Table definition could be:

%{
# ActiveSession
-> [unique] Lab.Subject
---
(session_rig_class, session_rig_id) -> [nullable, unique] Lab.Rig(rig_manufacturer, rig_model)
%}

Note: describe currently does not support showing set indices and will continue to not show with this update. Will file a separate issue to track it.

@guzman-raphael guzman-raphael merged commit e636334 into datajoint:stage-external-storage Oct 30, 2020
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.

1 participant