Skip to content

Commit

Permalink
fix: add plain postgres alias (#21045)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Aug 11, 2022
1 parent 7445eab commit 4f1996d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down

0 comments on commit 4f1996d

Please sign in to comment.