🐛 Fix SQLAlchemy URL Passing Error

This commit is contained in:
luoshuijs 2023-12-27 14:41:42 +08:00 committed by GitHub
parent b467408ff9
commit 7eee4fa29d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ if sqlalchemy_url is None:
port=application_config.database.port, port=application_config.database.port,
database=application_config.database.database, 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: def run_migrations_offline() -> None: