2025-01-27 22:40:26 +02: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
|
|
|
|
|
{
|
|
|
|
|
Schema::create('forum_threads', function (Blueprint $table) {
|
|
|
|
|
$table->id();
|
|
|
|
|
$table->unsignedBigInteger('category_id');
|
|
|
|
|
$table->string('name');
|
|
|
|
|
$table->string('slug');
|
2025-02-01 15:31:47 +02:00
|
|
|
$table->string('icon')->nullable();
|
|
|
|
|
$table->text('description')->nullable();
|
2025-01-27 22:40:26 +02:00
|
|
|
$table->integer('order')->default(0);
|
|
|
|
|
$table->timestamps();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
|
|
|
|
public function down(): void
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('forum_threads');
|
|
|
|
|
}
|
|
|
|
|
};
|