wip
This commit is contained in:
@@ -15,9 +15,6 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('uuid')->unique();
|
||||
$table->string('name')->unique();
|
||||
|
||||
$table->nullableMorphs('environments_morph');
|
||||
|
||||
$table->foreignId('project_id');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
<?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('environmentables', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('environment_id');
|
||||
$table->unsignedBigInteger('environmentable_id');
|
||||
$table->string('environmentable_type');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('environmentables');
|
||||
}
|
||||
};
|
||||
@@ -15,7 +15,10 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('uuid')->unique();
|
||||
$table->string('name');
|
||||
$table->nullableMorphs('destination');
|
||||
|
||||
$table->morphs('destination');
|
||||
$table->foreignId('environment_id');
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,6 +15,10 @@ return new class extends Migration
|
||||
$table->id();
|
||||
$table->string('uuid')->unique();
|
||||
$table->string('name');
|
||||
|
||||
$table->morphs('destination');
|
||||
$table->foreignId('environment_id');
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user