Skip to content

Commit a4a7240

Browse files
committed
upgrades: remove record JSONSchema version bump
1 parent eb87a81 commit a4a7240

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

invenio_app_rdm/upgrade_scripts/migrate_12_0_to_13_0.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- record
2020
- internal_notes
2121
"""
22+
2223
import sys
2324

2425
from click import secho
@@ -42,10 +43,7 @@ def update_record(record):
4243
try:
4344
secho(f"Updating record : {record.pid.pid_value}", fg="yellow")
4445

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-
46+
# TODO: Add any record datamodel migration code here
4947
record.commit()
5048

5149
secho(f"> Updated parent: {record.parent.pid.pid_value}", fg="green")

0 commit comments

Comments
 (0)