Skip to content

Commit

Permalink
Fixed #64
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Dec 2, 2024
1 parent 8adf567 commit 8940fb5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bbconf/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class TokenizedBed(Base):
nullable=False,
)
universe_id: Mapped[str] = mapped_column(
ForeignKey("universes.id", ondelete="CASCADE", passive_deletes=True),
ForeignKey("universes.id", ondelete="CASCADE"),
primary_key=True,
index=True,
nullable=False,
Expand All @@ -350,9 +350,10 @@ class TokenizedBed(Base):

bed: Mapped["Bed"] = relationship("Bed", back_populates="tokenized")
universe: Mapped["Universes"] = relationship(
"Universes",
"Universes",
back_populates="tokenized",
passive_deletes=True,
passive_deletes="all",
)


Expand Down

0 comments on commit 8940fb5

Please sign in to comment.