mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #1150] [MERGED] Fixed foreign-key (mariadb) errors. #2902
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#2902
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/1150
Author: @BlackDex
Created: 9/21/2020
Status: ✅ Merged
Merged: 9/27/2020
Merged by: @dani-garcia
Base:
master← Head:mariadb-fk-issues📝 Commits (2)
978be0bFixed foreign-key (mariadb) errors.c698bcaMerge branch 'master' into mariadb-fk-issues📊 Changes
8 files changed (+170 additions, -45 deletions)
View changed files
📝
src/db/models/attachment.rs(+13 -2)📝
src/db/models/cipher.rs(+16 -5)📝
src/db/models/collection.rs(+40 -9)📝
src/db/models/folder.rs(+22 -8)📝
src/db/models/org_policy.rs(+14 -3)📝
src/db/models/organization.rs(+32 -9)📝
src/db/models/two_factor.rs(+15 -4)📝
src/db/models/user.rs(+18 -5)📄 Description
When using MariaDB v10.5+ Foreign-Key errors were popping up because of
some changes in that version. To mitigate this on MariaDB and other
MySQL forks those errors are now catched, and instead of a replace_into
an update will happen. I have tested this as thorough as possible with
MariaDB 10.5, 10.4, 10.3 and the default MySQL on Ubuntu Focal. And
tested it again using sqlite, all seems to be ok on all tables.
resolves #1081. resolves #1065, resolves #1050, resolves #1159
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.