wip: persisting data

This commit is contained in:
Andras Bacsai
2023-04-03 13:37:53 +02:00
parent 829a45f410
commit 259f41bb8a
10 changed files with 92 additions and 7 deletions

View File

@@ -17,8 +17,8 @@ return new class extends Migration
$table->string('name');
$table->morphs('destination');
$table->foreignId('environment_id');
$table->foreignId('environment_id');
$table->timestamps();
});
}

View File

@@ -17,6 +17,7 @@ return new class extends Migration
$table->string('name');
$table->morphs('destination');
$table->foreignId('environment_id');
$table->timestamps();
});

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('local_persistent_volumes', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->string('name');
$table->string('mount_path');
$table->string('host_path')->nullable();
$table->string('container_id')->nullable();
$table->nullableMorphs('resource');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('local_persistent_volumes');
}
};