Skip to content

Implement migrator for removal of sample_state_information slot from PortionOfSubstance class #2364

@eecavanna

Description

@eecavanna

Background

In PR #2354, the sample_state_information slot is being removed from the PortionOfSubstance class.

In the schema docs, I can see that the PortionOfSubstance class is in the range of the substances_used slot of the following schema classes:

  • Extraction
  • StorageProcess
  • DissolvingProcess
  • ChemicalConversionProcess
  • MobilePhaseSegment

Task

The task is to write a migrator that locates each "instance" of each of those classes in the database, checks whether it has a substances_used field and—if it does—deletes the sample_state_information field from each object in that substances_used field.

Add the migrator to that PR branch.

Metadata

Metadata

Assignees

Labels

X SMALLLess than 8 hours, less than 1 day

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions