From 4f1996dba8e35ee958048b726750247ec8e518aa Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Wed, 10 Aug 2022 18:07:31 -0700 Subject: [PATCH] fix: add plain postgres alias (#21045) --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ba16a2e58f67a..311d33e81ec78 100644 --- a/setup.py +++ b/setup.py @@ -64,10 +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 + # the `postgres` and `postgres+psycopg2://` schemes were removed in SQLAlchemy 1.4 + # add an alias here to prevent breaking existing databases "sqlalchemy.dialects": [ - "postgres.psycopg2=sqlalchemy.dialects.postgresql:dialect" + "postgres.psycopg2 = sqlalchemy.dialects.postgresql:dialect", + "postgres = sqlalchemy.dialects.postgresql:dialect", ], }, install_requires=[