Issue #2218037 by sgabe | pinkonomy: Fixed integrity constraint violation when enabling Mime Mail.