Fix DB migration erro with Azure PostgreSQL Password with Langflow v0.6.14 (#1711)

The error caused by @ symbol in postgresql pasword fixed
This commit is contained in:
Alper_Emre 2024-04-18 17:59:36 +03:00 committed by GitHub
commit 24d5c482f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,7 +133,7 @@ class DatabaseService(Service):
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: