Implement Keystone environment deployments

This commit is contained in:
2026-05-13 16:11:23 +01:00
parent 65d3142d03
commit aa680b25fd
175 changed files with 10258 additions and 740 deletions

View File

@@ -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
{
public function up(): void
{
Schema::create('operations', function (Blueprint $table) {
$table->id();
$table->foreignId('parent_id')->nullable()->constrained('operations')->nullOnDelete();
$table->string('hash')->unique();
$table->string('kind')->default('service_deploy');
$table->morphs('target'); // server, service, etc.
$table->string('status');
$table->dateTime('started_at')->nullable();
$table->dateTime('finished_at')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('operations');
}
};