mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #1115] [MERGED] Delete associated favorites when deleting a cipher or user #6528
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/1115
Author: @jjlin
Created: 8/26/2020
Status: ✅ Merged
Merged: 8/26/2020
Merged by: @dani-garcia
Base:
master← Head:favorites📝 Commits (1)
175d647Delete associated favorites when deleting a cipher or user📊 Changes
4 files changed (+107 additions, -51 deletions)
View changed files
📝
src/db/models/cipher.rs(+15 -43)➕
src/db/models/favorite.rs(+83 -0)📝
src/db/models/mod.rs(+7 -7)📝
src/db/models/user.rs(+2 -1)📄 Description
This prevents foreign key constraint violations.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.