Implement Keystone environment deployments
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use App\Models\Organisation;
|
||||
use App\Models\Server;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
@@ -11,13 +12,26 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('services', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignIdFor(Server::class);
|
||||
$table->foreignIdFor(Organisation::class)->nullable();
|
||||
$table->foreignId('environment_id')->nullable();
|
||||
$table->foreignIdFor(Server::class)->nullable();
|
||||
$table->string('name');
|
||||
$table->string('status');
|
||||
$table->string('category'); // database / cache / webserver
|
||||
$table->string('type'); // postgres / redis / caddy
|
||||
$table->string('version'); // 17 / 7 / 2
|
||||
$table->string('version')->nullable(); // legacy alias for version_track
|
||||
$table->string('version_track'); // 18 / 8 / 2 / php-8.4
|
||||
$table->string('driver_name');
|
||||
$table->unsignedInteger('desired_replicas')->default(1);
|
||||
$table->string('desired_revision')->nullable();
|
||||
$table->string('deploy_policy')->default('manual');
|
||||
$table->json('process_roles')->nullable();
|
||||
$table->string('current_image_digest')->nullable();
|
||||
$table->string('available_image_digest')->nullable();
|
||||
$table->string('update_status')->nullable();
|
||||
$table->decimal('default_cpu_limit', 8, 3)->nullable();
|
||||
$table->unsignedInteger('default_memory_limit_mb')->nullable();
|
||||
$table->json('config')->nullable();
|
||||
$table->text('credentials')->nullable();
|
||||
$table->string('container_name')->nullable();
|
||||
$table->string('container_id')->nullable();
|
||||
|
||||
Reference in New Issue
Block a user