Match column type to db schema

No functional change
This commit is contained in:
sayali 2020-09-14 18:13:35 -07:00
parent 02d711282d
commit 676562ffde
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -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: