2023-03-24 21:15:36 +00:00
|
|
|
<?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
|
|
|
|
{
|
2023-03-28 06:28:03 +00:00
|
|
|
Schema::create('services', function (Blueprint $table) {
|
2023-03-24 21:15:36 +00:00
|
|
|
$table->id();
|
2023-03-27 12:31:42 +00:00
|
|
|
$table->string('uuid')->unique();
|
2023-03-28 06:28:03 +00:00
|
|
|
$table->string('name');
|
2023-03-27 12:31:42 +00:00
|
|
|
|
2023-03-28 06:28:03 +00:00
|
|
|
$table->morphs('destination');
|
2023-04-03 11:37:53 +00:00
|
|
|
|
2023-03-28 06:28:03 +00:00
|
|
|
$table->foreignId('environment_id');
|
2023-03-24 21:15:36 +00:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*/
|
|
|
|
public function down(): void
|
|
|
|
{
|
2023-03-28 06:28:03 +00:00
|
|
|
Schema::dropIfExists('services');
|
2023-03-24 21:15:36 +00:00
|
|
|
}
|
|
|
|
};
|