coolify/database/migrations/2023_03_27_085020_create_standalone_dockers_table.php
2023-05-02 12:47:52 +02:00

34 lines
773 B
PHP

<?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('standalone_dockers', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('uuid')->unique();
$table->string('network');
$table->foreignId('server_id');
$table->unique(['server_id', 'network']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('standalone_dockers');
}
};