Emi Matchu
ec6dca1c16
A few pieces here: 1. Convert all tables to `utf8mb4`+`utf8mb4_unicode_520_ci` strings. 2. Configure that as the server's default. 3. Configure the Rails database connection to use this encoding too. Came together pretty well, whew! This has been a LONG time coming, `latin1` is NOT a good charset for the year 2024!
69 lines
2 KiB
YAML
69 lines
2 KiB
YAML
development:
|
|
primary:
|
|
# You can override these default settings with this environment variable,
|
|
# fully or partially. We do this in the .devcontainer setup!
|
|
url: <%= ENV['DATABASE_URL_PRIMARY_DEV'] %>
|
|
adapter: mysql2
|
|
database: openneo_impress
|
|
username: impress_dev
|
|
password: impress_dev
|
|
pool: 5
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_unicode_520_ci
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
|
|
openneo_id:
|
|
# You can override these default settings with this environment variable,
|
|
# fully or partially. We do this in the .devcontainer setup!
|
|
url: <%= ENV['DATABASE_URL_OPENNEO_ID_DEV'] %>
|
|
adapter: mysql2
|
|
database: openneo_id
|
|
username: impress_dev
|
|
password: impress_dev
|
|
pool: 2
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
migrations_paths: db/openneo_id_migrate
|
|
|
|
test:
|
|
primary:
|
|
# You can override these default settings with this environment variable,
|
|
# fully or partially. We do this in the .devcontainer setup!
|
|
url: <%= ENV['DATABASE_URL_PRIMARY_TEST'] %>
|
|
adapter: mysql2
|
|
database: openneo_impress_test
|
|
username: impress_dev
|
|
password: impress_dev
|
|
pool: 5
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_unicode_520_ci
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
|
|
openneo_id:
|
|
# You can override these default settings with this environment variable,
|
|
# fully or partially. We do this in the .devcontainer setup!
|
|
url: <%= ENV['DATABASE_URL_OPENNEO_ID_TEST'] %>
|
|
adapter: mysql2
|
|
database: openneo_id_test
|
|
username: impress_dev
|
|
password: impress_dev
|
|
pool: 2
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
migrations_paths: db/openneo_id_migrate
|
|
|
|
production:
|
|
primary:
|
|
url: <%= ENV['DATABASE_URL_PRIMARY'] %>
|
|
encoding: utf8mb4
|
|
collation: utf8mb4_unicode_520_ci
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
|
|
openneo_id:
|
|
url: <%= ENV['DATABASE_URL_OPENNEO_ID'] %>
|
|
variables:
|
|
sql_mode: TRADITIONAL
|
|
migrations_paths: db/openneo_id_migrate
|