{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/4"}],"enrichment":{"capability":"Extends Alembic's autogenerate to detect and emit PostgreSQL enum value changes as ALTER TYPE ADD VALUE statements in migrations.","skillfed_tags":["alembic","postgresql","schema-migration"],"use_cases":["Automatically generate migrations when adding new values to existing PostgreSQL enum types in your SQLAlchemy models.","Avoid manual ALTER TYPE SQL writing by letting Alembic detect enum changes during autogenerate.","Ensure enum migrations are tracked in version control alongside other schema changes in a PostgreSQL project."],"what_it_does":"This package hooks into Alembic's autogenerate mechanism to automatically detect when PostgreSQL enum types have new values added to your models, then generates the corresponding ALTER TYPE .. ADD VALUE SQL statements in your migration files. Without this hook, Alembic's default autogenerate ignores enum value changes, requiring manual migration writing.\n\nThe package works by registering itself when imported into your env.py file. It handles a PostgreSQL constraint: ALTER TYPE statements cannot run inside transactions, so each enum sync operation opens its own temporary database connection. This is a thin, specialized tool for teams using Alembic with PostgreSQL enums who want migrations to stay in sync with model changes automatically.","worth_installing":"No, not recommended. The package is abandoned with no updates in over a year and has no documented compatibility with current Alembic or PostgreSQL versions. For active projects, the maintenance risk outweighs the convenience of enum autogeneration. Consider manual enum migrations or evaluating whether a maintained alternative exists before adopting this."},"id":"alembic-autogenerate-enums","links":{"html":"https://skillfed.io/packages/alembic-autogenerate-enums","md":"https://skillfed.io/packages/alembic-autogenerate-enums.md","pypi":"https://pypi.org/project/alembic-autogenerate-enums/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-07-19","license_spdx":null,"license_treatment":"permissive","name":"alembic-autogenerate-enums","python_support":"supports_current","summary":"Alembic hook that allows enums values to be upgraded and downgraded in migrations automatically"},"popularity":{"monthly_downloads":155677,"position":10804,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.2"}
