diff --git a/lemur/dns_providers/models.py b/lemur/dns_providers/models.py index eb8cdff9..0e301e7b 100644 --- a/lemur/dns_providers/models.py +++ b/lemur/dns_providers/models.py @@ -12,7 +12,7 @@ class DnsProvider(db.Model): __tablename__ = "dns_providers" id = Column(Integer(), primary_key=True) name = Column(String(length=256), unique=True, nullable=True) - description = Column(Text(), nullable=True) + description = Column(String(length=1024), nullable=True) provider_type = Column(String(length=256), nullable=True) credentials = Column(Vault, nullable=True) api_endpoint = Column(String(length=256), nullable=True) diff --git a/lemur/migrations/env.py b/lemur/migrations/env.py index 008a9952..3acefc3a 100644 --- a/lemur/migrations/env.py +++ b/lemur/migrations/env.py @@ -67,7 +67,8 @@ def run_migrations_online(): context.configure( connection=connection, target_metadata=target_metadata, - **current_app.extensions["migrate"].configure_args + **current_app.extensions["migrate"].configure_args, + compare_type=True ) try: