From aa874781e3a715656ee2d8099c0e63438a6071ed Mon Sep 17 00:00:00 2001 From: marcsello Date: Sat, 28 Nov 2020 19:19:23 +0100 Subject: [PATCH] Fixed table creation problems --- src/models/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/comment.py b/src/models/comment.py index 9a6a640..f9cde24 100644 --- a/src/models/comment.py +++ b/src/models/comment.py @@ -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)