mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:05:55 +00:00
add ttrss_entries.date_updated; use date_updated instead of date_enered for expiry checking (bump schema)
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
updated,
|
||||
guid,
|
||||
link,
|
||||
SUBSTRING(date_entered,1,16) AS date_entered,
|
||||
SUBSTRING(date_updated,1,16) AS date_updated,
|
||||
SUBSTRING(last_read,1,16) AS last_read,
|
||||
comments,
|
||||
ttrss_feeds.feed_url AS feed_url,
|
||||
@@ -118,7 +118,7 @@
|
||||
updated,
|
||||
guid,
|
||||
link,
|
||||
SUBSTRING(date_entered,1,16) AS date_entered,
|
||||
SUBSTRING(date_updated,1,16) AS date_updated,
|
||||
SUBSTRING(last_read,1,16) AS last_read,
|
||||
comments,
|
||||
ttrss_feeds.feed_url AS feed_url,
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
$entry_guid = db_escape_string($data["guid"]);
|
||||
$entry_link = db_escape_string($data["link"]);
|
||||
$updated = db_escape_string($data["updated"]);
|
||||
$date_entered = db_escape_string($data["date_entered"]);
|
||||
$date_updated = db_escape_string($data["date_updated"]);
|
||||
$entry_content = db_escape_string($data["content"]);
|
||||
$content_hash = "SHA1:" . sha1(strip_tags($entry_content));
|
||||
$entry_comments = db_escape_string($data["comments"]);
|
||||
@@ -77,7 +77,7 @@
|
||||
content,
|
||||
content_hash,
|
||||
no_orig_date,
|
||||
date_entered,
|
||||
date_updated,
|
||||
comments)
|
||||
VALUES
|
||||
('$entry_title',
|
||||
@@ -87,7 +87,7 @@
|
||||
'$entry_content',
|
||||
'$content_hash',
|
||||
false,
|
||||
'$date_entered',
|
||||
'$date_updated',
|
||||
'$entry_comments')");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user