mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 08:43:37 +00:00
fix cascade delete on cv versions
This commit is contained in:
@@ -21,7 +21,11 @@ class CvDocument(Base, IdentifierMixin, TimestampMixin):
|
|||||||
)
|
)
|
||||||
|
|
||||||
versions: Mapped[list["CvVersion"]] = relationship(
|
versions: Mapped[list["CvVersion"]] = relationship(
|
||||||
"CvVersion", back_populates="document", foreign_keys="[CvVersion.document_id]"
|
"CvVersion",
|
||||||
|
back_populates="document",
|
||||||
|
foreign_keys="[CvVersion.document_id]",
|
||||||
|
cascade="all, delete-orphan",
|
||||||
|
passive_deletes=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user