mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-03 19:57:29 +01:00
Fix review votes not cascade deleting
This commit is contained in:
parent
32372e8e86
commit
46a38753a9
@ -157,7 +157,7 @@ class PackageReview(db.Model):
|
|||||||
recommends = db.Column(db.Boolean, nullable=False)
|
recommends = db.Column(db.Boolean, nullable=False)
|
||||||
|
|
||||||
thread = db.relationship("Thread", uselist=False, back_populates="review")
|
thread = db.relationship("Thread", uselist=False, back_populates="review")
|
||||||
votes = db.relationship("PackageReviewVote", back_populates="review")
|
votes = db.relationship("PackageReviewVote", back_populates="review", cascade="all, delete, delete-orphan")
|
||||||
|
|
||||||
score = db.Column(db.Integer, nullable=False, default=1)
|
score = db.Column(db.Integer, nullable=False, default=1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user