// the Feed object throws an exception when there are problems, but that isn't ideal
// here. When an exception is thrown it should update the database with the
// error instead of failing; if other exceptions are thrown, we should simply roll back
@ -1161,8 +1168,8 @@ class Database {
}
if (sizeof($feed->newItems)) {
$qInsertArticle = $this->db->prepareArray(
"INSERT INTO arsse_articles(url,title,author,published,edited,guid,content,url_title_hash,url_content_hash,title_content_hash,feed) values(?,?,?,?,?,?,?,?,?,?,?)",
"INSERT INTO arsse_articles(url,title,author,published,edited,guid,content,url_title_hash,url_content_hash,title_content_hash,feed,content_scraped) values(?,?,?,?,?,?,?,?,?,?,?,?)",
-- 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.