From 460b4b65fec2056e9e3b1e9ddfe1ec320b5aad98 Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Tue, 13 Sep 2016 14:07:48 +0700 Subject: [PATCH] Adjust field length in History table --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 733dbd8..d2ad101 100644 --- a/app/models.py +++ b/app/models.py @@ -1137,7 +1137,7 @@ class Server(object): class History(db.Model): id = db.Column(db.Integer, primary_key = True) msg = db.Column(db.String(256)) - detail = db.Column(db.Text()) + detail = db.Column(db.Text().with_variant(db.Text(length=2**24-2), 'mysql')) created_by = db.Column(db.String(128)) created_on = db.Column(db.DateTime, default=datetime.utcnow)