We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb87a81 commit a4a7240Copy full SHA for a4a7240
invenio_app_rdm/upgrade_scripts/migrate_12_0_to_13_0.py
@@ -19,6 +19,7 @@
19
- record
20
- internal_notes
21
"""
22
+
23
import sys
24
25
from click import secho
@@ -42,10 +43,7 @@ def update_record(record):
42
43
try:
44
secho(f"Updating record : {record.pid.pid_value}", fg="yellow")
45
- # otherwise the save would not work, due to new attributes
46
- # (media_files, parent_doi) used
47
- record["$schema"] = "local://records/record-v7.0.0.json"
48
-
+ # TODO: Add any record datamodel migration code here
49
record.commit()
50
51
secho(f"> Updated parent: {record.parent.pid.pid_value}", fg="green")
0 commit comments