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_posts', function (Blueprint $table) {
|
|
|
|
|
$table->id();
|
2025-02-16 21:11:07 +02:00
|
|
|
$table->unsignedBigInteger('topic_id');
|
|
|
|
|
$table->unsignedBigInteger('thread_id');
|
|
|
|
|
$table->unsignedBigInteger('category_id');
|
2025-01-27 22:40:26 +02:00
|
|
|
$table->text('content');
|
|
|
|
|
$table->unsignedBigInteger('user_id');
|
|
|
|
|
$table->timestamps();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
|
|
|
|
public function down(): void
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('forum_posts');
|
|
|
|
|
}
|
|
|
|
|
};
|