🐛 Fix SQLAlchemy URL Passing Error

This commit is contained in:
luoshuijs 2023-12-27 14:41:42 +08:00 committed by xtaodada
parent 9b19acadc2
commit 434ee0aeaa
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -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: