diff --git a/backend/alembic/env.py b/backend/alembic/env.py index 5f3a45a4..3b7585f9 100644 --- a/backend/alembic/env.py +++ b/backend/alembic/env.py @@ -39,7 +39,9 @@ if alembic_config.config_file_name is not None: target_metadata = MappedBase.metadata # other values from the config, defined by the needs of env.py, -alembic_config.set_main_option('sqlalchemy.url', SQLALCHEMY_DATABASE_URL.render_as_string(hide_password=False)) +alembic_config.set_main_option( + 'sqlalchemy.url', SQLALCHEMY_DATABASE_URL.render_as_string(hide_password=False).replace('%', '%%') +) def run_migrations_offline():