Skip to content

Postfixadmin should make more use of foreign keys #972

Description

@csware

Missing foreign keys are (at least for MySQL/MariaDB):

  • fetchmail.destuser -> mailbox->username
  • quota.username -> mailbox->username
  • quota2.username -> mailbox->username
  • vacation.email -> mailbox->username
  • domain_admins.domain -> domains.domain
  • domain_admins.username -> admins.username (I'm unsure whether this is already there)

This also requires some cleanup steps beforehand such as DELETE FROM $vaction where email not in (SELECT username from $mailbox) etc., because otherwise creating foreign keys may fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions