From 0b9f7b3ce6ee7dfc7574b3043b9dd653a3f34825 Mon Sep 17 00:00:00 2001
From: Zhang Huangbin
Date: Mon, 27 Jul 2015 18:22:05 +0800
Subject: [PATCH] Typo.
---
en_US/upgrade/0-upgrade.iredmail.0.7.3-0.7.4.md | 4 +++-
html/upgrade.iredmail.0.7.3-0.7.4.html | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/en_US/upgrade/0-upgrade.iredmail.0.7.3-0.7.4.md b/en_US/upgrade/0-upgrade.iredmail.0.7.3-0.7.4.md
index dff90e01..8d326525 100644
--- a/en_US/upgrade/0-upgrade.iredmail.0.7.3-0.7.4.md
+++ b/en_US/upgrade/0-upgrade.iredmail.0.7.3-0.7.4.md
@@ -92,7 +92,8 @@ MySQL table to avoid similar issues.
Below are steps to store realtime mailbox quota usage in a separate SQL table:
-* Create new SQL table `vmail.used_quota` to store mailbox quota:
+* Create new SQL table `vmail.used_quota` to store real-time mailbox quota and
+ drop unused SQL columns: `mailbox.bytes`, `mailbox.messages`:
```
# mysql -uroot -p
mysql> USE vmail;
@@ -102,6 +103,7 @@ mysql> CREATE TABLE IF NOT EXISTS `used_quota` (
`messages` BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
mysql> ALTER TABLE mailbox DROP COLUMN bytes;
mysql> ALTER TABLE mailbox DROP COLUMN messages;
```
diff --git a/html/upgrade.iredmail.0.7.3-0.7.4.html b/html/upgrade.iredmail.0.7.3-0.7.4.html
index 7aaf87dc..4b55eabf 100644
--- a/html/upgrade.iredmail.0.7.3-0.7.4.html
+++ b/html/upgrade.iredmail.0.7.3-0.7.4.html
@@ -105,7 +105,8 @@ critial issue. So we have to store realtime mailbox quota usage in a separate
MySQL table to avoid similar issues.
Below are steps to store realtime mailbox quota usage in a separate SQL table:
-- Create new SQL table
vmail.used_quota
to store mailbox quota:
+- Create new SQL table
vmail.used_quota
to store real-time mailbox quota and
+ drop unused SQL columns: mailbox.bytes
, mailbox.messages
:
# mysql -uroot -p
mysql> USE vmail;
@@ -115,6 +116,7 @@ mysql> CREATE TABLE IF NOT EXISTS `used_quota` (
`messages` BIGINT NOT NULL DEFAULT 0,
PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
mysql> ALTER TABLE mailbox DROP COLUMN bytes;
mysql> ALTER TABLE mailbox DROP COLUMN messages;