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

FINERACT-982 - Completely ditch use of Drizzle JDBC Driver after all #1882

Closed
wants to merge 2 commits into from
Closed

Conversation

IOhacker
Copy link
Contributor

Description

Changes were done for replacing the Drizzle JDBC Driver as per issue reported at FINERACT-982 - Completely ditch use of Drizzle JDBC Driver after all

@@ -31,9 +31,9 @@ CREATE TABLE `m_template` (
DROP TABLE IF EXISTS `m_templatemappers`;
CREATE TABLE `m_templatemappers` (
`id` BIGINT NOT NULL AUTO_INCREMENT,
`mapperkey` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mapperkey` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens to old deployments when u update and previous migration file? Can we instead update in a newer migration script?

@IOhacker
Copy link
Contributor Author

IOhacker commented Sep 23, 2021 via email

@francisguchie
Copy link
Contributor

@awasum , I have gone through the discussion on FINERACT-982, does the PR cater for the non-tech users?

@IOhacker
Copy link
Contributor Author

@awasum

This will work? (of course with the tables affected)

fineract/fineract-provider/src/main/resources/sql/migrations/core_db/Vxxx__alter_m_template_for_utf8mb4_general_ci.sql

Also I would like to propose to set this at DB level, like this

  • ./fineract-db/server_collation.cnf:/etc/mysql/conf.d/server_collation.cnf

The file will contain:

fineract-db/server_collation.cnf
[mysqld]
character_set_server=utf8mb4
collation_server=utf8mb4_general_ci

Any thoughs/suggestions?

@IOhacker
Copy link
Contributor Author

I will change the approach, not changing anything on the table collation. I will submit another PR

@IOhacker IOhacker closed this Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants