[PR #1115] [MERGED] Delete associated favorites when deleting a cipher or user #6528

Closed
opened 2026-03-07 21:00:27 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: masterHead: favorites


📝 Commits (1)

  • 175d647 Delete 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.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/1115 **Author:** [@jjlin](https://github.com/jjlin) **Created:** 8/26/2020 **Status:** ✅ Merged **Merged:** 8/26/2020 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `master` ← **Head:** `favorites` --- ### 📝 Commits (1) - [`175d647`](https://github.com/dani-garcia/vaultwarden/commit/175d647e47fbd9abec4134c708199ba8aa1ec682) Delete associated favorites when deleting a cipher or user ### 📊 Changes **4 files changed** (+107 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description This prevents foreign key constraint violations. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:00:27 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#6528