From f3028616622278f70bfbe1a50f2d93a07ea83258 Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Thu, 16 Feb 2017 14:09:41 -0600 Subject: [PATCH] Added ETag to SQL schema and picoFeed as requirement in composer --- composer.json | 3 ++- sql/SQLite3/0.sql | 11 ++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 0ced7afc..4bd67182 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ "php": "^7.0.0", "jkingweb/druuid": "^3.0.0", "phpseclib/phpseclib": "^2.0.4", - "webmozart/glob": "^4.1.0" + "webmozart/glob": "^4.1.0", + "fguillot/picoFeed": ">=0.1.31" }, "require-dev": { "mikey179/vfsStream": "^1.6.4" diff --git a/sql/SQLite3/0.sql b/sql/SQLite3/0.sql index 23756628..96117923 100644 --- a/sql/SQLite3/0.sql +++ b/sql/SQLite3/0.sql @@ -7,6 +7,7 @@ create table newssync_feeds( source TEXT, -- URL of site to which the feed belongs updated datetime, -- time at which the feed was last fetched modified datetime, -- time at which the feed last actually changed + etag TEXT, -- HTTP ETag hash used for cache validation, changes each time the content changes err_count integer not null default 0, -- count of successive times update resulted in error since last successful update err_msg TEXT, -- last error message username TEXT not null default '', -- HTTP authentication username @@ -22,12 +23,12 @@ create table newssync_articles( title TEXT, -- article title author TEXT, -- author's name published datetime, -- time of original publication - edited datetime, -- time of last edit - guid TEXT, -- GUID + edited datetime, -- time of last edit + guid TEXT, -- GUID content TEXT, -- content, as (X)HTML modified datetime not null default CURRENT_TIMESTAMP, -- date when article properties were last modified - hash varchar(64) not null, -- ownCloud hash - fingerprint varchar(64) not null, -- ownCloud fingerprint + hash varchar(64) not null, -- ownCloud hash + fingerprint varchar(64) not null, -- ownCloud fingerprint enclosures_hash varchar(64), -- hash of enclosures, if any; since enclosures are not uniquely identified, we need to know when they change tags_hash varchar(64) -- hash of RSS/Atom categories included in article; since these categories are not uniquely identified, we need to know when they change ); @@ -103,7 +104,7 @@ create table newssync_subscription_articles( create table newssync_labels( sub_article integer not null references newssync_subscription_articles(id) on delete cascade, -- owner TEXT not null references newssync_users(id) on delete cascade on update cascade, - name TEXT + name TEXT ); create index newssync_label_names on newssync_labels(name);