Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to convert smallint to boolean #8

Closed
beiske opened this issue Sep 17, 2012 · 1 comment
Closed

Ability to convert smallint to boolean #8

beiske opened this issue Sep 17, 2012 · 1 comment
Assignees

Comments

@beiske
Copy link

beiske commented Sep 17, 2012

Of course this is something that can be handled in a separate step after the migration is done, but at least for my use case it would be smooth if I could specify a list of columns of type smallinteger that should be converted to boolean.

A more generic approach could be to create an easy way to extend the application with custom perl-methods for special case data-conversion.

@ghost ghost assigned darold Oct 1, 2012
@darold
Copy link
Owner

darold commented Oct 1, 2012

You now have the ability to convert on the fly any column value into boolean PostgreSQL value. In last commit you have two new configuration directives REPLACE_AS_BOOLEAN and BOOLEAN_VALUES to control this feature.

Call to custom Perl methods for special case data-conversion will be implemented in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants