From 97d362170571fdd023d80ded4fd5c1bf42255065 Mon Sep 17 00:00:00 2001 From: Curtis Castrapel Date: Tue, 29 May 2018 10:22:52 -0700 Subject: [PATCH] convert description to TEXT column --- lemur/dns_providers/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lemur/dns_providers/models.py b/lemur/dns_providers/models.py index f0eb71a8..0cf41730 100644 --- a/lemur/dns_providers/models.py +++ b/lemur/dns_providers/models.py @@ -1,4 +1,4 @@ -from sqlalchemy import Column, Integer, String, text +from sqlalchemy import Column, Integer, String, text, Text from sqlalchemy.dialects.postgresql import JSON from sqlalchemy_utils import ArrowType @@ -14,7 +14,7 @@ class DnsProvider(db.Model): primary_key=True, ) name = Column(String(length=256), unique=True, nullable=True) - description = Column(String(length=1024), nullable=True) + description = Column(Text(), nullable=True) provider_type = Column(String(length=256), nullable=True) credentials = Column(Vault, nullable=True) api_endpoint = Column(String(length=256), nullable=True)