-
Notifications
You must be signed in to change notification settings - Fork 15
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
[APPINT-1146] Fix database encoding configuration #181
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Sometimes the database is created with an character set different that the one specified in `config/database.yml`. This causes some issue when the database is created in non utf8 charset (eg: latin1). This commit adds an initializer that warn the user in case of mismatch between the configured and actual encoding. It also provides a migration generator to facilitate charset migration.
cc23003
to
eb81358
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. After this is merged, do we have to take any action on other connectors? Say connector-gusto
, for example? 🤓
@alexmaestrano Yes we'll have to update the gem and then use the generator to create the migration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well done
Sometimes the database is created with an character set different that
the one specified in
config/database.yml
.This causes some issue when the database is created in non utf8 charset
(eg: latin1).
This commit adds an initializer that warn the user in case of mismatch
between the configured and actual encoding.
It also provides a migration generator to facilitate charset migration.