Princeton-LSI-ResearchComputing / tracebase

Mouse Metabolite Tracing Data Repository for the Rabinowitz Lab
MIT License
4 stars 1 forks source link

MSRunSample unique constraint code version of null == null #949

Closed hepcat72 closed 1 month ago

hepcat72 commented 2 months ago

Summary Change Description

Changed the unique constraints in MSRunSample to ensure only a single placeholder record can exist for any one sequence and sample combo.

Details:

Note, the MSRunSample ordering might need to be checked.

Affected Issues/Pull Requests

Note, a follow-up PR will be created to migrate the data, so this should not be merged upon approval until that data migration is done. I was thinking that I would create dummy accucor records for the MSRunSample records that run afoul of the new unique constraint, which, on production is comprised of about 7 compounds, about 4 accucor files and about 52 samples.

Review Notes

See comments in-line.

Checklist

This pull request will be merged once the following requirements are met. The author and/or reviewers should uncheck any unmet requirements: