From 72a8573b2fcc945378410f6b27f95f372b37d92e Mon Sep 17 00:00:00 2001 From: Jordan Frazier <122494242+jordanrfrazier@users.noreply.github.com> Date: Wed, 5 Mar 2025 11:56:14 -0800 Subject: [PATCH] fix: set prepared threshold to none for migrations (#6912) * Set prepared threshold to none for migrations * [autofix.ci] apply automated fixes * ruff * revert search --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- src/backend/base/langflow/alembic/env.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/backend/base/langflow/alembic/env.py b/src/backend/base/langflow/alembic/env.py index 290abe632..affada9ba 100644 --- a/src/backend/base/langflow/alembic/env.py +++ b/src/backend/base/langflow/alembic/env.py @@ -49,6 +49,7 @@ def run_migrations_offline() -> None: literal_binds=True, dialect_opts={"paramstyle": "named"}, render_as_batch=True, + prepare_threshold=None ) with context.begin_transaction(): @@ -71,7 +72,12 @@ def _sqlite_do_begin(conn): def _do_run_migrations(connection): - context.configure(connection=connection, target_metadata=target_metadata, render_as_batch=True) + context.configure( + connection=connection, + target_metadata=target_metadata, + render_as_batch=True, + prepare_threshold=None + ) with context.begin_transaction(): if connection.dialect.name == "postgresql":