mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-08-27 05:35:03 -05:00
[GH-ISSUE #6242] Inconsistent length of uuid field MAY lead to compatible problems #11191
Reference in New Issue
Block a user
Originally created by @longyq20 on GitHub (Aug 28, 2025).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/6242
Prerequisites
Vaultwarden Support String
I've encountered a foreign key field compatibility issue during a database migration. After reviewing the code, I noticed that the length of the uuid field is inconsistent across different tables (e.g., CHAR(36) or VARCHAR(40)). Some databases do not allow this. I wonder why they were designed with different lengths.
Vaultwarden Build Version
v1.34.3
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
none
Host/Server Operating System
Linux
Operating System Version
No response
Clients
Android
Client Version
No response
Steps To Reproduce
Create server container with remote database.
Expected Result
May be the length of
uuidshould be consistenet since it is usually fixed.Actual Result
Inconsistent length of uuid field caused migration problems
Logs
Screenshots or Videos
No response
Additional Context
No response
@longyq20 commented on GitHub (Aug 28, 2025):
Discussions 4651
DB schema: Foreign keys invalid