Skip to content

Commit

Permalink
bug fix 23176
Browse files Browse the repository at this point in the history
  • Loading branch information
RekhaZemoso committed Mar 20, 2023
1 parent a5c31b2 commit 3b90984
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import logging
from logging.config import fileConfig
from typing import List
import urllib.parse

from alembic import context
from alembic.operations.ops import MigrationScript
Expand All @@ -42,7 +43,8 @@
"SQLite Database support for metadata databases will \
be removed in a future version of Superset."
)
config.set_main_option("sqlalchemy.url", DATABASE_URI)
decoded_uri = urllib.parse.unquote(DATABASE_URI)
config.set_main_option("sqlalchemy.url", decoded_uri)
target_metadata = Base.metadata # pylint: disable=no-member


Expand Down

0 comments on commit 3b90984

Please sign in to comment.