mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[PR #6694] Force MySQL to use correct name and collation #3836
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3836
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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.