diff options
author | rubenwardy <rw@rubenwardy.com> | 2020-07-15 16:01:33 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2020-07-15 16:01:45 +0100 |
commit | 8dd1cd9045bad112d93e58b96332c5dd1b4df996 (patch) | |
tree | 99d0e6f97f658d27262aadc7f3ea2222468a0d79 /app/models.py | |
parent | 643380038b0196dfdbfb8356439e897613f0830d (diff) | |
download | cheatdb-8dd1cd9045bad112d93e58b96332c5dd1b4df996.tar.xz |
Increase comment length limit to 2000
Diffstat (limited to 'app/models.py')
-rw-r--r-- | app/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models.py b/app/models.py index af4b3b2..2bb6d3d 100644 --- a/app/models.py +++ b/app/models.py @@ -1146,7 +1146,7 @@ class Thread(db.Model): class ThreadReply(db.Model): id = db.Column(db.Integer, primary_key=True) thread_id = db.Column(db.Integer, db.ForeignKey("thread.id"), nullable=False) - comment = db.Column(db.String(500), nullable=False) + comment = db.Column(db.String(2000), nullable=False) author_id = db.Column(db.Integer, db.ForeignKey("user.id"), nullable=False) created_at = db.Column(db.DateTime, nullable=False, default=datetime.datetime.utcnow) |