diff options
author | Andrew Dolgov <[email protected]> | 2020-04-11 06:51:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-04-11 06:51:00 +0300 |
commit | 7ad00753039640d22bedde34b74483d2ef1a3c90 (patch) | |
tree | e0a2ce64aae6800fbe8899fa7d288be11ad83c96 /init.php | |
parent | a3e78474d0084812ca50cf62cb792c186e59f1ca (diff) |
migrate unread status of articles
Diffstat (limited to 'init.php')
-rw-r--r-- | init.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -189,6 +189,7 @@ class Data_Migration extends Plugin { tag_cache, label_cache, author, + unread, ttrss_feeds.title AS feed_title, ttrss_feeds.feed_url AS feed_url, ttrss_entries.updated @@ -330,7 +331,7 @@ class Data_Migration extends Plugin { "INSERT INTO ttrss_user_entries (ref_id, owner_uid, feed_id, unread, last_read, marked, published, score, tag_cache, label_cache, uuid, note) - VALUES (:ref_id, :owner_uid, :feed_id, false, NULL, + VALUES (:ref_id, :owner_uid, :feed_id, :unread, NULL, :marked, :published, :score, :tag_cache, '', '', :note)"); $res = $sth->execute([ @@ -339,6 +340,7 @@ class Data_Migration extends Plugin { "feed_id" => $feed, "marked" => (int)sql_bool_to_bool($article['marked']), "published" => (int)sql_bool_to_bool($article['published']), + "unread" => (int)sql_bool_to_bool($article['unread']), "score" => $score, "tag_cache" => $tag_cache, "note" => $note]); |