Skip to content

Commit

Permalink
Fix DB migration erro with Azure PostgreSQL Password with Langflow v0…
Browse files Browse the repository at this point in the history
….6.14 (#1711)

The error caused by @ symbol in postgresql pasword fixed
  • Loading branch information
Alperemrehas authored Apr 18, 2024
1 parent 9c292af commit 24d5c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/database/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 24d5c48

Please sign in to comment.