Skip to content

Commit

Permalink
Fix Flarum Postscript for migrations without discussion read records
Browse files Browse the repository at this point in the history
  • Loading branch information
linc committed Feb 6, 2023
1 parent 98dcbeb commit f37b0f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Postscript/Flarum.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ protected function repairPostMention(ExportModel $ex, int $postid, string $conte
*/
protected function setLastRead(ExportModel $ex)
{
// Verify table exists.
if (! $ex->targetExists($ex->tarPrefix . 'discussion_user')) {
return;
}

// Start timer.
$start = microtime(true);
$rows = 0;
Expand Down

0 comments on commit f37b0f8

Please sign in to comment.