We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best I can tell, the entry-types/merge command also includes drafts and revisions when counting entries. For example, I’m seeing:
entry-types/merge
craft entry-types/merge handle handle2
Which entry type should persist? - handle (1 usage, 100 entries) - handle2 (1 usage, 609 entries)
The handle section is 100 newly created entries, with no drafts or revisions, so that is all appearing as expected.
handle
However, handle2 only has 34 entries. After clearing the revisions, the number is way lower, but I’m still not sure why it’s so high.
handle2
craft utils/prune-revisions --max-revisions=0
5.4.1
8.2
No response
PostgreSQL
The text was updated successfully, but these errors were encountered:
Is the handle2 entry type used by any Matrix or CKEditor fields? The query to fetch those counts is just this:
cms/src/console/controllers/EntryTypesController.php
Lines 65 to 69 in 5e56c6d
Drafts and revisions are not included in element queries by default, so those will not be included here.
Sorry, something went wrong.
Might also be worth updating to Craft 5.4.2 and then running craft gc --delete-all-trashed.
craft gc --delete-all-trashed
No branches or pull requests
What happened?
Description
Best I can tell, the
entry-types/merge
command also includes drafts and revisions when counting entries. For example, I’m seeing:The
handle
section is 100 newly created entries, with no drafts or revisions, so that is all appearing as expected.However,
handle2
only has 34 entries. After clearing the revisions, the number is way lower, but I’m still not sure why it’s so high.Steps to reproduce
craft entry-types/merge handle handle2
and see the resultscraft utils/prune-revisions --max-revisions=0
craft entry-types/merge handle handle2
again, and see the results are differentCraft CMS version
5.4.1
PHP version
8.2
Operating system and version
No response
Database type and version
PostgreSQL
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: