Change data column data type of DomainTemplateRecord to TEXT

This commit is contained in:
Khanh Ngo 2018-04-12 11:44:56 +07:00
parent 52b6966c83
commit 8b7653ad4a

View File

@ -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')