AUR web interface

Tasklist

FS#47038 - MySQL unique index on Email column too long

Attached to Project: AUR web interface
Opened by Stefan Auditor (sanduhrs) - Wednesday, 11 November 2015, 13:17 GMT
Last edited by Lukas Fleischer (lfleischer) - Monday, 15 February 2016, 18:42 GMT
Task Type Bug Report
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 4.1.1
Due in Version 4.2.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Trying to create the table structure for a fresh aurweb install with 'mysql -uaur -p AUR < aur-schema.sql' I get the following error from the mysql console:

ERROR 1071 (42000) at line 23: Specified key was too long; max key length is 767 bytes

Used MySQL version is:
mysql Ver 15.1 Distrib 10.0.22-MariaDB, for Linux (x86_64)

Solution 1:
Removing the unique constraint on the Email field solves the issue but might create problems when creating users.

Solution 2:
Reducing the varchar to from 256 to 255 solves the problem.
But we'd need to check whether anyone already used the current maximum of 256 characters.
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Monday, 15 February 2016, 18:42 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 4.2.0.

Loading...