diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-01-27 15:38:51 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | f3c4d744c011df8d18c49495f5111a17197b7038 (patch) | |
tree | f8067fdc7c762523e79700106c85978ff8bfcb53 /lib | |
parent | 98d72bac541a726691cc23a1ac0e75148f618b6b (diff) |
🐛 Share Item: feed_id not nullable, copy feed_id
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib')
-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; |