mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-09 04:32:44 -05:00
[PR #6694] Force MySQL to use correct name and collation #7465
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/6694
Author: @BlackDex
Created: 1/9/2026
Status: 🔄 Open
Base:
main← Head:force-mysql-names-collate📝 Commits (1)
9a32017Force MySQL to use correct name and collation📊 Changes
2 files changed (+36 additions, -9 deletions)
View changed files
📝
.env.template(+1 -1)📝
src/db/mod.rs(+35 -8)📄 Description
This should force all MySQL/MariaDB connections to use the correct names and collation to be
utf8mb4andutf8mb4_unicode_ci. It will not fix current tables which have the wrong charset or collation, but it should prevent new databases and future additions to use the wrong set.Also made sure that the init statements are also applied during migrations, which currently did not happen.
Should prevent / resolve #6611 like issues in the future.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.