mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-14 08:42:38 -04:00
cleanup:database used orderBy()->skip(10)->delete(). Laravel drops the offset in a DELETE, so it deleted all old rows anyway, and the count query with the offset printed 0 on PostgreSQL. Count without the offset, delete in batches of 1000 rows so a large table is not locked by one long DELETE, and write the output through the command so it is captured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>