From 24d5c482f0055ebab731c9fb25ebc1f85753588e Mon Sep 17 00:00:00 2001 From: Alper_Emre <37380232+Alperemrehas@users.noreply.github.com> Date: Thu, 18 Apr 2024 17:59:36 +0300 Subject: [PATCH] Fix DB migration erro with Azure PostgreSQL Password with Langflow v0.6.14 (#1711) The error caused by @ symbol in postgresql pasword fixed --- src/backend/base/langflow/services/database/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/services/database/service.py b/src/backend/base/langflow/services/database/service.py index 876f9f30e9cf..5ca20c642841 100644 --- a/src/backend/base/langflow/services/database/service.py +++ b/src/backend/base/langflow/services/database/service.py @@ -133,7 +133,7 @@ def run_migrations(self, fix=False): alembic_cfg = Config(stdout=buffer) # alembic_cfg.attributes["connection"] = session alembic_cfg.set_main_option("script_location", str(self.script_location)) - alembic_cfg.set_main_option("sqlalchemy.url", self.database_url) + alembic_cfg.set_main_option("sqlalchemy.url", self.database_url.replace('%', '%%')) should_initialize_alembic = False with Session(self.engine) as session: