2025-10-20 08:57:51 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
|
|
|
|
|
|
return new class extends Migration
|
|
|
|
|
{
|
|
|
|
|
public function up(): void
|
|
|
|
|
{
|
2025-12-03 14:23:03 +01:00
|
|
|
Schema::dropIfExists('settings');
|
|
|
|
|
|
2025-10-20 08:57:51 +02:00
|
|
|
Schema::create('settings', function (Blueprint $table) {
|
2025-12-03 14:23:03 +01:00
|
|
|
$table->string('key')->primary();
|
|
|
|
|
$table->text('value')->nullable();
|
2025-10-20 08:57:51 +02:00
|
|
|
$table->timestamps();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function down(): void
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('settings');
|
|
|
|
|
}
|
2025-12-03 14:23:03 +01:00
|
|
|
};
|