You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was nothing to fix, actually. utils/prune-revisions just doesn’t completely erase the revision data (which is sortof a bug, but something that garbage collection will take care of so not a big deal), but the partial remaining revision data was confusing a part of Craft’s revision creation process into thinking a revision existed when it didn’t.
What happened?
Description
When having Matrix blocks, upon calling
utils/prune-revisions
, the Matrix blocks get destroyedSteps to reproduce
utils/prune-revisions
with 0I've setup a repo to display the issue https://github.com/vandres/craft4-prune-revisions-matrix
In the
sql
folder, you have a db dump before and after the prune.Expected behavior
All but 1 revisions are gone. It should be still possible to save new revisions.
Actual behavior
Saving entries after the prune is no longer possible.
Craft CMS version
4.0.2
PHP version
8.0
Operating system and version
Debian 11
Database type and version
MariaDB 10.3
Image driver and version
No response
Installed plugins and versions
None - blank default setup
The text was updated successfully, but these errors were encountered: