diff --git a/compendium_v2/migrations/env.py b/compendium_v2/migrations/env.py index 9683fdf42aefcbbc74693af36a38385861bf006a..b7a4b1489e7bcea16061eb2d882a2086b5901448 100644 --- a/compendium_v2/migrations/env.py +++ b/compendium_v2/migrations/env.py @@ -1,7 +1,6 @@ import logging - +import alembic_postgresql_enum # type: ignore # noqa: F401 from flask import current_app - from alembic import context # this is the Alembic Config object, which provides diff --git a/requirements.txt b/requirements.txt index fa17bda5006eb6a3df220d5b7f84bcae67b4c02a..47a630b5dd0aa64b672d07ec9fe225d1a040cfc5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,6 @@ alembic~=1.10 +# needed to support auto discovery of and applying enum changes +alembic-postgresql-enum~=0.1 click~=8.1 jsonschema~=4.17 flask~=2.2 diff --git a/setup.py b/setup.py index 18ae8c07738c24d14e2377469e518600b35c776f..9335715b968193620e7694421c7f1d0b88e16725 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ setup( packages=find_packages(), install_requires=[ 'alembic~=1.10', + 'alembic-postgresql-enum~=0.1', 'click~=8.1', 'jsonschema~=4.17', 'flask~=2.2',