It's REQUIRED to remove old sql records and drop unused sql columns after upgrading iRedMail-0.9.7.

This commit is contained in:
Zhang Huangbin 2017-07-09 22:22:07 +08:00
parent 550860d7a0
commit 88ff13151a
2 changed files with 8 additions and 8 deletions

View File

@ -379,9 +379,9 @@ Restarting Postfix service is required.
* Please also upgrade iRedAPD and iRedAdmin-Pro, they need the new SQL * Please also upgrade iRedAPD and iRedAdmin-Pro, they need the new SQL
structure too. structure too.
After migration, few columns in `vmail.alias` table are not used anymore. it's After migration, `vmail.alias` table contains few sql columns we will never
ok to drop them. But it's strongly recommended to keep them for few more days use, also old records (accounts) will cause ghost accounts if we don't remove
until you can confirm all features are working as expected. them.
Please connect to MySQL server as MySQL root user, then execute SQL commands Please connect to MySQL server as MySQL root user, then execute SQL commands
below: below:
@ -392,7 +392,7 @@ USE vmail;
-- Remove non-mail-alias account -- Remove non-mail-alias account
DELETE FROM alias WHERE islist <> 1; DELETE FROM alias WHERE islist <> 1;
-- per-domain catch-all account -- Remove per-domain catch-all account
DELETE FROM alias WHERE address=domain; DELETE FROM alias WHERE address=domain;
-- Drop unused columns -- Drop unused columns

View File

@ -395,9 +395,9 @@ perl -pi -e 's#alias,#forwardings,#g' *.cf
structure too.</li> structure too.</li>
</ul> </ul>
</div> </div>
<p>After migration, few columns in <code>vmail.alias</code> table are not used anymore. it's <p>After migration, <code>vmail.alias</code> table contains few sql columns we will never
ok to drop them. But it's strongly recommended to keep them for few more days use, also old records (accounts) will cause ghost accounts if we don't remove
until you can confirm all features are working as expected.</p> them.</p>
<p>Please connect to MySQL server as MySQL root user, then execute SQL commands <p>Please connect to MySQL server as MySQL root user, then execute SQL commands
below:</p> below:</p>
<pre><code>USE vmail; <pre><code>USE vmail;
@ -405,7 +405,7 @@ below:</p>
-- Remove non-mail-alias account -- Remove non-mail-alias account
DELETE FROM alias WHERE islist &lt;&gt; 1; DELETE FROM alias WHERE islist &lt;&gt; 1;
-- per-domain catch-all account -- Remove per-domain catch-all account
DELETE FROM alias WHERE address=domain; DELETE FROM alias WHERE address=domain;
-- Drop unused columns -- Drop unused columns