Skip to content

Emit sa.Enum(...).with_variant(postgresql.ENUM(...)) instead of postgresql.ENUM(...) #83

Description

@Et7f3

Hello,

Thanks for your works.

I know the project is called alembic-postgresql-enum but from outside it seems to be quite generic and in theory could be applied with multiple backend once create_type is added for others dialect.

Main alembic dev suggest this coding style:
sqlalchemy/alembic#1347 (comment)

One advantage I see is that we don't seems locked with postgresql (in the case in the future I need to change to other db).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions