convert description to TEXT column

This commit is contained in:
Curtis Castrapel 2018-05-29 10:22:52 -07:00
parent 544a02ca3f
commit 97d3621705
1 changed files with 2 additions and 2 deletions

View File

@ -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.dialects.postgresql import JSON
from sqlalchemy_utils import ArrowType from sqlalchemy_utils import ArrowType
@ -14,7 +14,7 @@ class DnsProvider(db.Model):
primary_key=True, primary_key=True,
) )
name = Column(String(length=256), unique=True, nullable=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) provider_type = Column(String(length=256), nullable=True)
credentials = Column(Vault, nullable=True) credentials = Column(Vault, nullable=True)
api_endpoint = Column(String(length=256), nullable=True) api_endpoint = Column(String(length=256), nullable=True)