icatproject / icat.server

The ICAT server offering both SOAP and "RESTlike" interfaces to a metadata catalog.
Other
1 stars 5 forks source link

Add many-to-many relationship InvestigationSample to the schema #294

Open EmilJunker opened 2 years ago

EmilJunker commented 2 years ago

This replaces the old pull request #240 and closes #231. It turns the one-to-many relationship between Investigation and Sample into a many-to-many relationship. Consequently, it also changes the uniqueness constraint of the Sample table.

I rebased the changes from #240 with the current master branch and resolved all occurring conflicts. I then pushed the branch to the official icat.server repository instead of my forked version to make it easier for others to review and to make changes. That is also the reason why I opened this new pull request (GitHub doesn't allow to change the source branch of an existing pull request).

Here is a summary of the changes:

Note that all the things I mentioned in #240 still apply to this pull request. Most notably, it is very much a work in progress.

Some notes about the upgrade script: