enhancement(feeds): change max age default value to 0 (#1313)

* refactor: update help text for RSS, TORZNAB, and NEWZNAB

* refactor: change default to 0.

* fix: update sqlite_migrate.go

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
This commit is contained in:
KaiserBh 2023-12-26 01:11:26 +11:00 committed by GitHub
parent 3b60365483
commit e63aec1ab2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 7 deletions

View file

@ -342,7 +342,7 @@ CREATE TABLE feed
url TEXT,
interval INTEGER,
timeout INTEGER DEFAULT 60,
max_age INTEGER DEFAULT 3600,
max_age INTEGER DEFAULT 0,
categories TEXT [] DEFAULT '{}' NOT NULL,
capabilities TEXT [] DEFAULT '{}' NOT NULL,
api_key TEXT,
@ -831,5 +831,8 @@ ALTER TABLE filter_external
`,
`ALTER TABLE irc_network
ADD COLUMN bot_mode BOOLEAN DEFAULT FALSE;
`,
`ALTER TABLE feed
ALTER COLUMN max_age SET DEFAULT 0;
`,
}