Skip to content

Commit

Permalink
migration: mint the new concept DOI for each upgraded record
Browse files Browse the repository at this point in the history
* previously, the script would create a new concept DOI for each record
  but never actually mint them on DataCite
  • Loading branch information
max-moser committed Aug 29, 2024
1 parent 285ebaa commit fcca3ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions invenio_app_rdm/upgrade_scripts/migrate_11_0_to_12_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fcca3ef

Please sign in to comment.