summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-10-25 14:45:34 +0300
committerAndrew Dolgov <[email protected]>2019-10-25 14:45:34 +0300
commita3e78474d0084812ca50cf62cb792c186e59f1ca (patch)
treed040240859bb82a1026b6125af1c33e29e46385e
parent6953ca02fd5df11d3ef59cf0b4049a5b329f655b (diff)
support migration of article author fields
-rw-r--r--init.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.php b/init.php
index f0a4f48..61635e1 100644
--- a/init.php
+++ b/init.php
@@ -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 = ?");