Skip to content

Commit

Permalink
models: add index on object_version_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastro2 authored and slint committed Feb 5, 2024
1 parent 92061c1 commit 2ae2597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions invenio_records_resources/records/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def object_version_id(cls):
UUIDType,
db.ForeignKey(ObjectVersion.version_id, ondelete="RESTRICT"),
nullable=True,
index=True,
)

@declared_attr
Expand Down

0 comments on commit 2ae2597

Please sign in to comment.