datajoint / datajoint-matlab

Relational data pipelines for the science lab
MIT License
42 stars 38 forks source link

Reverse engineering creates duplicated foreign keys #121

Open shenshan opened 6 years ago

dimitri-yatsenko commented 6 years ago

Would you provide a more detailed description with an example?

shenshan commented 6 years ago

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

dimitri-yatsenko commented 6 years ago

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