Pogchamp-company / alembic-postgresql-enum

Alembic autogenerate support for creation, alteration and deletion of enums
MIT License
184 stars 10 forks source link

Use same schema as table or support specifying enum schema? #82

Closed pikevsten closed 2 months ago

pikevsten commented 2 months ago

Auto-generation puts the enums in the public schema, even if the table is in a different schema.

How can I change the schema that auto-generation compares against?

RustyGuard commented 2 months ago

You can explicitly specify schema on your enum object like that sa.Enum(..., schema="your_schema")

pikevsten commented 2 months ago

Thank you ❤️