mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-03 04:35:38 -04:00
Increase max feed URL length and drop unicity (#5038)
* Increase max feed URL length and drop unicity #fix https://github.com/FreshRSS/FreshRSS/issues/4338 Drop the unicity constraint on our feed URL. In practice, this did not add much value as identical feeds could have different URLs. And it generated several problems, for instance during renaming or automatic redirections such as from HTTP to HTTPS, with collisions for which we dot not have any elegant handling. I have kept a high limit of 32768 because cURL does not seem to have any limit except memory, which might lead to memory problems. This is the highest server-side value reported by https://www.sistrix.com/ask-sistrix/technical-seo/site-structure/url-length-how-long-can-a-url-be * Same for Web site URL For consistency
This commit is contained in:
committed by
GitHub
parent
1c4b328ae1
commit
2f02754522
@@ -15,11 +15,11 @@ CREATE TABLE IF NOT EXISTS `_category` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `_feed` (
|
||||
"id" SERIAL PRIMARY KEY,
|
||||
"url" VARCHAR(511) UNIQUE NOT NULL,
|
||||
"url" VARCHAR(32768) NOT NULL,
|
||||
"kind" SMALLINT DEFAULT 0, -- 1.20.0
|
||||
"category" INT DEFAULT 0, -- 1.20.0
|
||||
"name" VARCHAR(255) NOT NULL,
|
||||
"website" VARCHAR(255),
|
||||
"website" VARCHAR(32768),
|
||||
"description" TEXT,
|
||||
"lastUpdate" INT DEFAULT 0,
|
||||
"priority" SMALLINT NOT NULL DEFAULT 10,
|
||||
|
||||
Reference in New Issue
Block a user