sqlalchemy / sqlalchemy/alembic
Does not respect postgresql ENUM kwargs when generating migration files
Open
Nobody has claimed this yet.
autogenerate - rendering
autogenerate for enums
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 375
- PR merge metrics
- No merged PRs in 30d
Description
from sqlalchemy.dialects.postgresql import ENUM
class MyTable(Base):
__tablename__ = "my_table"
enum = Column(
ENUM(MyEnum, create_type=False),
nullable=False,
)
The create_type=False is not generated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the PostgreSQL ENUM example and trace the migration autogeneration path for dialect-specific ENUM options. Done means the generated migration preserves create_type=False, with regression coverage for the reported model.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python, sqlalchemy
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100