Fixed table creation problems
This commit is contained in:
parent
085dd6ab32
commit
aa874781e3
@ -14,4 +14,4 @@ class Comment(db.Model):
|
|||||||
item_id = db.Column(db.Integer, db.ForeignKey("item.id", ondelete="CASCADE"), nullable=False)
|
item_id = db.Column(db.Integer, db.ForeignKey("item.id", ondelete="CASCADE"), nullable=False)
|
||||||
item = db.relationship("Item", backref=db.backref("comments", lazy=True))
|
item = db.relationship("Item", backref=db.backref("comments", lazy=True))
|
||||||
|
|
||||||
text = db.Text(4096, nullable=False)
|
text = db.Text(4096)
|
||||||
|
Loading…
Reference in New Issue
Block a user