Skip to content

Commit

Permalink
migration: commit parent if Datacite DOIs are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
J4bbi committed Nov 29, 2024
1 parent c655ea2 commit 06e1f82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 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 @@ -107,6 +107,10 @@ def update_parent(record):
scheme="doi",
parent=True,
)
else:
# commit parent if Datacite DOIs are disabled to create
# parent user link
record.parent.commit()

def update_record(record):
# skipping deleted records because can't be committed
Expand Down

0 comments on commit 06e1f82

Please sign in to comment.