mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Make URL columns 8000 characters wide
According to RFC 7230, URLs can be up too 8000 characters long. Resize all URL fields accordingly. Also, add a test to verify that URLs with more than 8000 characters are rejected by the update hook. Reported-by: Andreas Linz <klingt.net@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
0dce4c4bca
commit
1492444ecb
4 changed files with 33 additions and 4 deletions
12
upgrading/4.4.0.txt
Normal file
12
upgrading/4.4.0.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
1. Resize the URL column of the Packages table:
|
||||
|
||||
----
|
||||
ALTER TABLE Packages MODIFY URL VARCHAR(8000) NULL DEFAULT NULL;
|
||||
----
|
||||
|
||||
2. Resize the Source column of the PackageSources table:
|
||||
|
||||
----
|
||||
ALTER TABLE PackageSources
|
||||
MODIFY Source VARCHAR(8000) NOT NULL DEFAULT "/dev/null";
|
||||
----
|
Loading…
Add table
Add a link
Reference in a new issue