From 8b7653ad4a95f20487886916328bb0745e07e3da Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Thu, 12 Apr 2018 11:44:56 +0700 Subject: [PATCH] Change data column data type of DomainTemplateRecord to TEXT --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 0901c5a..b0e0fcf 100644 --- a/app/models.py +++ b/app/models.py @@ -1561,7 +1561,7 @@ class DomainTemplateRecord(db.Model): name = db.Column(db.String(255)) type = db.Column(db.String(64)) ttl = db.Column(db.Integer) - data = db.Column(db.String(255)) + data = db.Column(db.Text) status = db.Column(db.Boolean) template_id = db.Column(db.Integer, db.ForeignKey('domain_template.id')) template = db.relationship('DomainTemplate', back_populates='records')