PhyrePanel-mirror/web/Modules/Docker/Database/migrations/2024_04_19_222101_create_docker_images_table.php
2024-04-22 14:14:05 +03:00

35 lines
814 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('docker_images', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->longText('description')->nullable();
$table->integer('star_count')->nullable();
$table->boolean('is_official')->default(false);
$table->boolean('is_automated')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('docker_images');
}
};