summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-10-27 12:05:20 +0400
committerAndrew Dolgov <[email protected]>2010-10-27 12:05:20 +0400
commit25ea280502fbb0fb7fc51f355df8fc644dfc994d (patch)
tree1a2eb0a3a5f6d98702ac9340dbb33ee6ebf17a1e /utils
parent70543b6a400f292c6ed03d0489d0d696d1e13606 (diff)
add ttrss_entries.date_updated; use date_updated instead of date_enered for expiry checking (bump schema)
Diffstat (limited to 'utils')
-rw-r--r--utils/xml-export.php4
-rw-r--r--utils/xml-import.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/utils/xml-export.php b/utils/xml-export.php
index 438f008d4..6926fd6c2 100644
--- a/utils/xml-export.php
+++ b/utils/xml-export.php
@@ -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,
diff --git a/utils/xml-import.php b/utils/xml-import.php
index 0706b0fa2..96201d91e 100644
--- a/utils/xml-import.php
+++ b/utils/xml-import.php
@@ -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')");
}