We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30af34a commit 1d77ad8Copy full SHA for 1d77ad8
changelog/297.fix.md
@@ -0,0 +1 @@
1
+Fix missing dependency in migrations
packages/climate-ref/src/climate_ref/migrations/env.py
@@ -1,4 +1,3 @@
-import alembic_postgresql_enum # noqa
2
from alembic import context, op
3
from loguru import logger
4
from sqlalchemy import Connection, inspect
@@ -9,6 +8,11 @@
9
8
from climate_ref_core.logging import capture_logging
10
from climate_ref_core.pycmec.controlled_vocabulary import CV
11
+try:
12
+ import alembic_postgresql_enum # noqa
13
+except ImportError:
14
+ logger.warning("alembic_postgresql_enum not installed, skipping enum migration support")
15
+
16
# Setup logging
17
capture_logging()
18
logger.debug("Running alembic env")
0 commit comments