<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
final class CreateSettingsTable extends Migration
{
/**
* Migrate Up.
*/
public function up(): void
{
if (! Schema::hasTable('settings')) {
Schema::create('settings', function (Blueprint $table) {
$table->string('name', 25)->primary();
$table->string('value');
});
}
}
/**
* Migrate Down.
*/
public function down(): void
{
Schema::dropIfExists('settings');
}
}