mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #603] SQL error on quota recalc #565
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#565
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?
Originally created by @tonioo on GitHub (Sep 17, 2014).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/603
Originally assigned to: @tonioo on GitHub.
When MySQL is in use and the following command is executed:
dovecot tries to remove existing admin_quota records before updating them. Unfortunately, the following error is raised:
dict: Error: sql dict: commit failed: Cannot delete or update a parent row: a foreign key constraint fails (mailng.admin_mailbox, CONSTRAINTquota_value_id_refs_username_65a4e03cdef957bfFOREIGN KEY (quota_value_id) REFERENCESadmin_quota(username))It is due to the foreign key between admin_mailbox and admin_quota which prevents the deletion.