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:
[ ] A documentation / typographical / small typing error fix
Good to go, no issue or tests are needed
[X] A short code fix
please include the issue number, and create an issue if none exists, which
must include a complete example of the issue. one line code fixes without an
issue and demonstration will not be accepted.
Please include: Fixes: #<issue number> in the commit message
please include tests. one line code fixes without tests will not be accepted.
[ ] A new feature implementation
please include the issue number, and create an issue if none exists, which must
include a complete example of how the feature would look.
Please include: Fixes: #<issue number> in the commit message
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:
Fixes: #<issue number>
in the commit messageFixes: #<issue number>
in the commit messageHave a nice day!