Skip to content

Commit 8ab5eac

Browse files
Merge pull request #4 from osg-htc/pr/unique-ror-id
Prevent duplicate ROR ID
2 parents bd729c7 + 8452fe7 commit 8ab5eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

institutions-api/db/db_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class InstitutionIdentifier(Base):
5151

5252
id = Column(UUID(as_uuid=True), primary_key=True, default=uuid4)
5353

54-
identifier = Column(String, nullable=False)
54+
identifier = Column(String, nullable=False, unique=True)
5555

5656
institution_id: Mapped[UUID] = mapped_column(ForeignKey('institution.id'))
5757
identifier_type_id: Mapped[UUID] = mapped_column(ForeignKey('identifier_type.id'))

0 commit comments

Comments
 (0)