feat(restarts): make resource restart limits opt-in

Default restart limits to zero for applications, previews, and services, and bump the Coolify version to 4.3.21.
This commit is contained in:
Andras Bacsai
2026-09-15 12:58:59 +02:00
parent 8ab54da2ac
commit ab30f95ad9
11 changed files with 78 additions and 9 deletions
@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
foreach (['applications', 'application_previews', 'service_applications'] as $tableName) {
Schema::table($tableName, function (Blueprint $table) {
$table->integer('max_restart_count')->default(0)->change();
});
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
foreach (['applications', 'application_previews', 'service_applications'] as $tableName) {
Schema::table($tableName, function (Blueprint $table) {
$table->integer('max_restart_count')->default(10)->change();
});
}
}
};