diff options
-rw-r--r-- | lib/Db/ItemMapper.php | 2 | ||||
-rw-r--r-- | lib/Migration/Version150006Date20210117163638.php | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php index 8b5f42815..765c67698 100644 --- a/lib/Db/ItemMapper.php +++ b/lib/Db/ItemMapper.php @@ -570,7 +570,7 @@ class ItemMapper extends NewsMapper // copy/initialize fields $newItem->setUnread(true); $newItem->setStarred(false); - $newItem->setFeedId(null); + $newItem->setFeedId($item->getFeedId()); $newItem->setFingerprint($item->getFingerprint()); $newItem->setContentHash($item->getContentHash()); $newItem->setSearchIndex($item->getSearchIndex()); diff --git a/lib/Migration/Version150006Date20210117163638.php b/lib/Migration/Version150006Date20210117163638.php index d82da1d26..b6e3eb364 100644 --- a/lib/Migration/Version150006Date20210117163638.php +++ b/lib/Migration/Version150006Date20210117163638.php @@ -44,9 +44,6 @@ class Version150006Date20210117163638 extends SimpleMigrationStep { 'length' => 64, 'default' => '', ]); - $table->changeColumn('feed_id', [ - 'notnull' => false - ]); } return $schema; |