fix: add plain postgres alias (#21045)

This commit is contained in:
Beto Dealmeida
2022-08-10 18:07:31 -07:00
committed by GitHub
parent 7445eab5a2
commit 4f1996dba8

View File

@@ -64,10 +64,11 @@ setup(
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=[