Skip to content

Commit

Permalink
magento#14465 Fix empty changelog tables after MySQL restart. Leave a…
Browse files Browse the repository at this point in the history
…t least one record after tebles cleanup.
  • Loading branch information
al.kravchuk authored and ihor-sviziev committed Apr 11, 2018
1 parent 17f9341 commit 17b585f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Mview/View/Changelog.php
Expand Up @@ -121,7 +121,7 @@ public function clear($versionId)
throw new ChangelogTableNotExistsException(new Phrase("Table %1 does not exist", [$changelogTableName]));
}

$this->connection->delete($changelogTableName, ['version_id <= ?' => (int)$versionId]);
$this->connection->delete($changelogTableName, ['version_id < ?' => (int)$versionId]);

return true;
}
Expand Down

0 comments on commit 17b585f

Please sign in to comment.