Also transfer any existing scraper booleans on database upgrade. It was
previously possible to enable scraping manually by editing the database,
and these settings will be honoured.
-- Add a column for scraped article content, and re-order some columns
createtablearsse_articles_new(
-- entries in newsfeeds
idintegerprimarykey,-- sequence number
feedintegernotnullreferencesarsse_feeds(id)ondeletecascade,-- feed for the subscription
urltext,-- URL of article
titletextcollatenocase,-- article title
authortextcollatenocase,-- author's name
publishedtext,-- time of original publication
editedtext,-- time of last edit by author
modifiedtextnotnulldefaultCURRENT_TIMESTAMP,-- time when article was last modified in database
guidtext,-- GUID
url_title_hashtextnotnull,-- hash of URL + title; used when checking for updates and for identification if there is no guid.
url_content_hashtextnotnull,-- hash of URL + content, enclosure URL, & content type; used when checking for updates and for identification if there is no guid.
title_content_hashtextnotnull,-- hash of title + content, enclosure URL, & content type; used when checking for updates and for identification if there is no guid.
-- Add a separate table for feed icons and replace their URLs in the feeds table with their IDs
-- Also remove the "scrape" column of the feeds table, which was never an advertised feature
@ -88,28 +111,6 @@ insert into arsse_feeds_new
droptablearsse_feeds;
altertablearsse_feeds_newrenametoarsse_feeds;
-- Add a column for scraped article content, and re-order some column
createtablearsse_articles_new(
-- entries in newsfeeds
idintegerprimarykey,-- sequence number
feedintegernotnullreferencesarsse_feeds(id)ondeletecascade,-- feed for the subscription
urltext,-- URL of article
titletextcollatenocase,-- article title
authortextcollatenocase,-- author's name
publishedtext,-- time of original publication
editedtext,-- time of last edit by author
modifiedtextnotnulldefaultCURRENT_TIMESTAMP,-- time when article was last modified in database
guidtext,-- GUID
url_title_hashtextnotnull,-- hash of URL + title; used when checking for updates and for identification if there is no guid.
url_content_hashtextnotnull,-- hash of URL + content, enclosure URL, & content type; used when checking for updates and for identification if there is no guid.
title_content_hashtextnotnull,-- hash of title + content, enclosure URL, & content type; used when checking for updates and for identification if there is no guid.