support infinite length posts and comments (fixes #229)

This commit is contained in:
justcool393 2023-02-25 02:18:30 -08:00 committed by GitHub
parent 44919507e9
commit bfe8fb70f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 99 additions and 32 deletions

View file

@ -50,7 +50,10 @@ def run_migrations_offline():
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url, target_metadata=target_metadata, literal_binds=True
url=url, target_metadata=target_metadata, literal_binds=True,
#compare_type=True,
# compare_type is commented out here in order to make tests pass
# this should be uncommented when migrations are completely up to date
)
with context.begin_transaction():
@ -81,6 +84,7 @@ def run_migrations_online():
context.configure(
connection=connection,
target_metadata=target_metadata,
#compare_type=True,
process_revision_directives=process_revision_directives,
**current_app.extensions['migrate'].configure_args
)