From 88ff13151acb6550935ae1506903696588a912a6 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Sun, 9 Jul 2017 22:22:07 +0800 Subject: [PATCH] It's REQUIRED to remove old sql records and drop unused sql columns after upgrading iRedMail-0.9.7. --- en_US/upgrade/0-upgrade.iredmail.0.9.6-0.9.7.md | 8 ++++---- html/upgrade.iredmail.0.9.6-0.9.7.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/en_US/upgrade/0-upgrade.iredmail.0.9.6-0.9.7.md b/en_US/upgrade/0-upgrade.iredmail.0.9.6-0.9.7.md index 05a9bf7a..0b2709db 100644 --- a/en_US/upgrade/0-upgrade.iredmail.0.9.6-0.9.7.md +++ b/en_US/upgrade/0-upgrade.iredmail.0.9.6-0.9.7.md @@ -379,9 +379,9 @@ Restarting Postfix service is required. * Please also upgrade iRedAPD and iRedAdmin-Pro, they need the new SQL structure too. -After migration, few columns in `vmail.alias` table are not used anymore. it's -ok to drop them. But it's strongly recommended to keep them for few more days -until you can confirm all features are working as expected. +After migration, `vmail.alias` table contains few sql columns we will never +use, also old records (accounts) will cause ghost accounts if we don't remove +them. Please connect to MySQL server as MySQL root user, then execute SQL commands below: @@ -392,7 +392,7 @@ USE vmail; -- Remove non-mail-alias account DELETE FROM alias WHERE islist <> 1; --- per-domain catch-all account +-- Remove per-domain catch-all account DELETE FROM alias WHERE address=domain; -- Drop unused columns diff --git a/html/upgrade.iredmail.0.9.6-0.9.7.html b/html/upgrade.iredmail.0.9.6-0.9.7.html index a5c8363d..2bbeade8 100644 --- a/html/upgrade.iredmail.0.9.6-0.9.7.html +++ b/html/upgrade.iredmail.0.9.6-0.9.7.html @@ -395,9 +395,9 @@ perl -pi -e 's#alias,#forwardings,#g' *.cf structure too. -

After migration, few columns in vmail.alias table are not used anymore. it's -ok to drop them. But it's strongly recommended to keep them for few more days -until you can confirm all features are working as expected.

+

After migration, vmail.alias table contains few sql columns we will never +use, also old records (accounts) will cause ghost accounts if we don't remove +them.

Please connect to MySQL server as MySQL root user, then execute SQL commands below:

USE vmail;
@@ -405,7 +405,7 @@ below:

-- Remove non-mail-alias account DELETE FROM alias WHERE islist <> 1; --- per-domain catch-all account +-- Remove per-domain catch-all account DELETE FROM alias WHERE address=domain; -- Drop unused columns