From 7eee4fa29d407f3e7eccdd005c5f4b93840f362b Mon Sep 17 00:00:00 2001 From: luoshuijs Date: Wed, 27 Dec 2023 14:41:42 +0800 Subject: [PATCH] :bug: Fix SQLAlchemy URL Passing Error --- alembic/env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/env.py b/alembic/env.py index c7963d4..2795b35 100644 --- a/alembic/env.py +++ b/alembic/env.py @@ -72,7 +72,7 @@ if sqlalchemy_url is None: port=application_config.database.port, database=application_config.database.database, ) - alembic_cfg.set_main_option("sqlalchemy.url", str(new_url)) + alembic_cfg.set_main_option("sqlalchemy.url", new_url.render_as_string(hide_password=False)) def run_migrations_offline() -> None: