datajoint/datajoint-matlab

Reverse engineering creates duplicated foreign keys

Opened this issue · 3 comments

Reverse engineering creates duplicated foreign keys

Would you provide a more detailed description with an example?

When reverse engineering a table definition from an existing table, the foreign key will be duplicated. For example, when reverse engineering a table called SessionTask, the automatic definition is:
%{
-> experiment.Session
-> experiment.Session
-> experiment.TaskProtocol
-> experiment.TaskProtocol
%}

I have never seen this before and the reverse engineer feature has been there for several years. Let's reproduce and trace it down.