nmdc-schema 11.11.0__py3-none-any.whl → 11.12.0rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,11 +7,11 @@ class Migrator(MigratorBase):
7
7
  _from_version = "11.10.0"
8
8
  _to_version = "11.11.0.part_1"
9
9
 
10
- def upgrade(self) -> None:
10
+ def upgrade(self, commit_changes: bool = True) -> None:
11
11
  r"""Migrates the database from conforming to the original schema, to conforming to the new schema."""
12
12
  self.adapter.do_for_each_document("biosample_set", self.check_for_fields)
13
13
 
14
- def check_for_fields(self, biosample: dict) -> dict:
14
+ def check_for_fields(self, biosample: dict) -> None:
15
15
  r"""
16
16
  Check each biosample record to ensure none of the removed slots are being used.
17
17
  List of the slots that were removed: