diff --git a/setup.py b/setup.py index b62dceb47f07..5f1b7b7fd269 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,11 @@ def get_git_sha() -> str: zip_safe=False, entry_points={ "console_scripts": ["superset=superset.cli.main:superset"], + # the `postgres+psycopg2://` scheme was removed in SQLAlchemy 1.4, add an alias here + # to prevent breaking existing databases + "sqlalchemy.dialects": [ + "postgres.psycopg2=sqlalchemy.dialects.postgresql:dialect" + ], }, install_requires=[ "backoff>=1.8.0",