diff options
author | Stefan Auditor <stefan.auditor@erdfisch.de> | 2015-11-12 09:34:23 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-11-12 11:47:20 +0100 |
commit | 24734d06cefdeeb30c58beb52614a8498a089cb6 (patch) | |
tree | e734833a5d86621aabbcd0a58f9fad26505c0e3a /upgrading | |
parent | d87b138a89f734995d33fa91ebdccca59f848673 (diff) | |
download | aurweb-24734d06cefdeeb30c58beb52614a8498a089cb6.tar.xz |
Shorten Email column to 254 characters
Using unique indexes on VARCHAR fields with a character count of more
than 255 produces an error in MySQL with InnoDB tables and UTF-8
encoding.
Also, as per https://www.rfc-editor.org/errata_search.php?eid=1690, the
maximum length for email addresses is limited to 254 characters.
Fixes FS#47038.
Signed-off-by: Stefan Auditor <stefan.auditor@erdfisch.de>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'upgrading')
-rw-r--r-- | upgrading/4.2.0.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/upgrading/4.2.0.txt b/upgrading/4.2.0.txt index c195f41..1f92ec5 100644 --- a/upgrading/4.2.0.txt +++ b/upgrading/4.2.0.txt @@ -13,5 +13,5 @@ CREATE UNIQUE INDEX ProviderNameProvides ON OfficialProviders (Name, Provides); 2. Resize the email address field: ---- -ALTER TABLE Users MODIFY Email VARCHAR(256) NOT NULL; +ALTER TABLE Users MODIFY Email VARCHAR(254) NOT NULL; ---- |