This commit modifies alembic's env.py, so that it supports non-alphanumeric passwords.
The script creates an url to connect to the database, but the passworld was not url-escaped. Passwords with characters like @, : and . were causing failures.
The password is set as a config in sqlalchemy, which uses python's string interpolation. Now we replace instances of % with %% so that passwords that contain % can be used.
This commit modifies alembic's
env.py
, so that it supports non-alphanumeric passwords.The script creates an url to connect to the database, but the passworld was not url-escaped. Passwords with characters like
@
,:
and.
were causing failures.The password is set as a config in sqlalchemy, which uses python's string interpolation. Now we replace instances of
%
with%%
so that passwords that contain%
can be used.Fixes issue #1801