An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Refactor cleanup:database command signature to include optional --keep-days parameter
Andras Bacsai5967d7071321
diff --git a/app/Console/Commands/CleanupDatabase.php b/app/Console/Commands/CleanupDatabase.phpindex 0b2b766f49..a0adc8b36b 100644--- a/app/Console/Commands/CleanupDatabase.php+++ b/app/Console/Commands/CleanupDatabase.php@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\DB;class CleanupDatabase extends Command{- protected $signature = 'cleanup:database {--yes}';+ protected $signature = 'cleanup:database {--yes} {--keep-days=}';protected $description = 'Cleanup database';@@ -20,9 +20,9 @@ class CleanupDatabase extends Command}if (isCloud()) {// Later on we can increase this to 180 days or dynamically set- $keep_days = 60;+ $keep_days = $this->option('keep-days') ?? 60;} else {- $keep_days = 60;+ $keep_days = $this->option('keep-days') ?? 60;}echo "Keep days: $keep_days\n";// Cleanup failed jobs table