server
server copied to clipboard
Cleanup versions entities in during versions:clean command
Forgoten place where we need to remove versions entities in the database.
Fix https://github.com/nextcloud/server/issues/39046
/backport to stable28
/backport to stable27
/backport to stable26
Well, looks like my commit is in master already… What happened to my pre push hook? https://github.com/nextcloud/server/commit/1ec9f3e5f9dd84723008137af73cf365beaf4d1b
- OCA\Files_Versions\Tests\Command\CleanupTest::testDeleteVersions with data set #0 (true) ArgumentCountError: Too few arguments to function OCA\Files_Versions\Command\CleanUp::__construct(), 2 passed in /home/runner/work/server/server/apps/files_versions/tests/Command/CleanupTest.php on line 60 and exactly 3 expected
For bonus phpoints™ you can split off the fileid chunk fetching into a generator to hopefully make it bit more readable than the mixing of queries
Indeed, improves separation of concern, thanks for the tip :)
:sparkles: +1 phpoint™ for Louis :sparkles: