ajoute le self-healing des VM (sonde de santé, relance automatique, stock écarté) — bloc A, semaine 6

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Adam Belkacemi 2026-10-12 21:12:43 +02:00
parent b054888f5a
commit f2649d0f8b
21 changed files with 938 additions and 28 deletions

View file

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Bloc A, self-healing : dernier incident de santé d'une VM d'élève, montré
* au prof dans la salle d'attente (« relancée », « irréparable »).
*/
return new class extends Migration
{
public function up(): void
{
Schema::table('lab_session_machines', function (Blueprint $table) {
$table->string('sante', 20)->nullable();
$table->timestamp('sante_a')->nullable();
});
}
public function down(): void
{
Schema::table('lab_session_machines', function (Blueprint $table) {
$table->dropColumn(['sante', 'sante_a']);
});
}
};