Pogchamp-company / alembic-postgresql-enum

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

Add schema to rename default #54

Closed barrust closed 10 months ago

barrust commented 10 months ago

Fixes #53

Description

This change modifies the rename_default_if_required function to also allow for the passing of a schema. This allows for the setting of a default value on columns to be able to include enums from the schema.

Tests were modified to show the with schema provided, and without.

Checklist

This pull request is:

Have a nice day!