mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 03:40:16 +00:00
Altered the Cardinality of the foreign keys to be non-nullable
This commit is contained in:
parent
be1bce9261
commit
103b9a9da1
@@ -20,7 +20,7 @@ class Photo(Base):
|
||||
back_populates="photos"
|
||||
)
|
||||
|
||||
fk_travel_diary_id = Column(Integer, ForeignKey("travel_diaries.id"))
|
||||
fk_travel_diary_id = Column(Integer, ForeignKey("travel_diaries.id"),nullable=False)
|
||||
|
||||
def __init__(self, filepath, name, addition_date=None, caption=None, entries=None, **kw: Any):
|
||||
super().__init__(**kw)
|
||||
|
||||
Reference in New Issue
Block a user