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,32 @@
<?php
use App\Models\Application;
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('environments', function (Blueprint $table) {
$table->id();
$table->foreignIdFor(Application::class)->constrained()->cascadeOnDelete();
$table->string('name');
$table->string('branch');
$table->string('status')->default('pending');
$table->boolean('scheduler_enabled')->default(true);
$table->foreignId('scheduler_target_service_id')->nullable();
$table->string('scheduler_mode')->default('single');
$table->json('build_config')->nullable();
$table->timestamps();
$table->unique(['application_id', 'name']);
});
}
public function down(): void
{
Schema::dropIfExists('environments');
}
};