Search code examples
pythonsqlalchemyalembictimescaledbsqlmodel

Alembic - how to create hypertable


How to generate hypertable using Alembic? Some custom call must be added I suppose, but where? I tried event.listen but Alembic does not register it.


Solution

  • You can create hypertables in Alembic by adding manual, custom, migration actions.

    You cannot generate it automatically, because there is no specific support in Alembic for TimescaleDB and it does not understand hypertables.