fix(upgrade): count only scheduled jobs running on this host

This commit is contained in:
Andras Bacsai
2026-10-28 22:13:40 +01:00
parent 24648d4b20
commit 57cdd92f7c
7 changed files with 88 additions and 6 deletions
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
private const TABLES = ['scheduled_task_executions', 'scheduled_database_backup_executions', 'scheduled_volume_backup_executions'];
public function up(): void
{
foreach (self::TABLES as $table) {
Schema::table($table, function (Blueprint $table) {
$table->string('worker_host')->nullable();
});
}
}
public function down(): void
{
foreach (self::TABLES as $table) {
Schema::table($table, function (Blueprint $table) {
$table->dropColumn('worker_host');
});
}
}
};