mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
According to RFC 3696 (and the associated errata), an email address can be up to 256 characters long. Change the database field and the length limit on all input fields accordingly. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
17 lines
430 B
Text
17 lines
430 B
Text
1. Add a new table to store providers from official packages:
|
|
|
|
----
|
|
CREATE TABLE OfficialProviders (
|
|
ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
Name VARCHAR(64) NOT NULL,
|
|
Provides VARCHAR(64) NOT NULL,
|
|
PRIMARY KEY (ID)
|
|
) ENGINE = InnoDB;
|
|
CREATE UNIQUE INDEX ProviderNameProvides ON OfficialProviders (Name, Provides);
|
|
----
|
|
|
|
2. Resize the email address field:
|
|
|
|
----
|
|
ALTER TABLE Users MODIFY Email VARCHAR(256) NOT NULL;
|
|
----
|