Skip to content

Commit a2a43ed

Browse files
fix(GODT-1896): Do not remove subscribed status for deleted mailboxes
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.
1 parent 7ba466a commit a2a43ed

23 files changed

Lines changed: 2448 additions & 81 deletions

internal/db/ent/client.go

Lines changed: 116 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/db/ent/config.go

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/db/ent/deletedsubscription.go

Lines changed: 111 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/db/ent/deletedsubscription/deletedsubscription.go

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)