Skip to content

Commit

Permalink
fix(GODT-1896): Do not remove subscribed status for deleted mailboxes
Browse files Browse the repository at this point in the history
Every time we delete a mailbox, if this mailbox is subscribed it is
stored in the `DeletedSubscriptions` table. If we create a new mailbox
with the same name, the entry is removed from the table.

This approach was chose as it does not require any special database
migrations other than creating the new table.
  • Loading branch information
LBeernaertProton committed Dec 15, 2022
1 parent 7ba466a commit a2a43ed
Show file tree
Hide file tree
Showing 23 changed files with 2,448 additions and 81 deletions.
135 changes: 116 additions & 19 deletions internal/db/ent/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions internal/db/ent/config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 111 additions & 0 deletions internal/db/ent/deletedsubscription.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions internal/db/ent/deletedsubscription/deletedsubscription.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a2a43ed

Please sign in to comment.