mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Co-authored-by: Evan Rusackas <evan@preset.io>
This commit is contained in:
parent
8ef49a5789
commit
8f0328006b
@ -15,6 +15,7 @@
|
|||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
import logging
|
import logging
|
||||||
|
import urllib.parse
|
||||||
from logging.config import fileConfig
|
from logging.config import fileConfig
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
@ -42,7 +43,8 @@ if "sqlite" in DATABASE_URI:
|
|||||||
"SQLite Database support for metadata databases will \
|
"SQLite Database support for metadata databases will \
|
||||||
be removed in a future version of Superset."
|
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
|
target_metadata = Base.metadata # pylint: disable=no-member
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user