Fixed table creation problems

This commit is contained in:
Pünkösd Marcell 2020-11-28 19:19:23 +01:00
parent 085dd6ab32
commit aa874781e3

View File

@ -14,4 +14,4 @@ class Comment(db.Model):
item_id = db.Column(db.Integer, db.ForeignKey("item.id", ondelete="CASCADE"), nullable=False)
item = db.relationship("Item", backref=db.backref("comments", lazy=True))
text = db.Text(4096, nullable=False)
text = db.Text(4096)