diff --git a/invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py b/invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py index e2a475715..581614412 100644 --- a/invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py +++ b/invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py @@ -94,6 +94,12 @@ def update_parent(record): record.parent, pids ) record.parent["pids"] = pids + current_rdm_records.records_service.pids.register_or_update( + id_=record["id"], + identity=system_identity, + scheme="doi", + parent=True, + ) def update_record(record): # skipping deleted records because can't be committed