Skip to content

Commit

Permalink
Modified: reciprocal_name is unique and nullable (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
signebedi committed Jul 6, 2024
1 parent 7b3b5dc commit e7942c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libreforms_fastapi/utils/sqlalchemy_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class RelationshipType(Base):
__tablename__ = 'relationship_types'
id = Column(Integer, primary_key=True)
name = Column(String, unique=True)
reciprocal_name = Column(String, default="")
reciprocal_name = Column(String, nullable=True, unique=True)
description = Column(String)
exclusive = Column(Boolean, default=False)

Expand Down

0 comments on commit e7942c7

Please sign in to comment.