diff options
author | Andrew Dolgov <[email protected]> | 2019-10-25 14:45:34 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-10-25 14:45:34 +0300 |
commit | a3e78474d0084812ca50cf62cb792c186e59f1ca (patch) | |
tree | d040240859bb82a1026b6125af1c33e29e46385e | |
parent | 6953ca02fd5df11d3ef59cf0b4049a5b329f655b (diff) |
support migration of article author fields
-rw-r--r-- | init.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -188,6 +188,7 @@ class Data_Migration extends Plugin { link, tag_cache, label_cache, + author, ttrss_feeds.title AS feed_title, ttrss_feeds.feed_url AS feed_url, ttrss_entries.updated @@ -248,7 +249,7 @@ class Data_Migration extends Plugin { NOW(), '', '0', - '')"); + :author)"); $sth->execute([ "title" => $article['title'], @@ -256,7 +257,8 @@ class Data_Migration extends Plugin { "link" => $article['link'], "updated" => $article['updated'], "content" => $article['content'], - "content_hash" => sha1($article['content']) + "content_hash" => sha1($article['content']), + "author" => $article["author"] ]); $sth = $this->pdo->prepare("SELECT id FROM ttrss_entries WHERE guid = ?"); |