datajoint-matlab icon indicating copy to clipboard operation
datajoint-matlab copied to clipboard

Reverse engineering creates duplicated foreign keys

Open shenshan opened this issue 6 years ago • 3 comments

shenshan avatar Jul 25 '18 18:07 shenshan

Would you provide a more detailed description with an example?

dimitri-yatsenko avatar Jul 26 '18 13:07 dimitri-yatsenko

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 %}

shenshan avatar Jul 26 '18 14:07 shenshan

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

dimitri-yatsenko avatar Jul 26 '18 14:07 dimitri-yatsenko