2025-06-29 09:37:49 +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
|
|
|
|
|
{
|
|
|
|
|
Schema::create('articles', function (Blueprint $table) {
|
|
|
|
|
$table->id();
|
|
|
|
|
$table->string('url');
|
2025-06-29 09:53:45 +02:00
|
|
|
$table->boolean('is_relevant')->nullable();
|
2025-06-29 09:37:49 +02:00
|
|
|
$table->timestamp('created_at')->default(now());
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function down(): void
|
|
|
|
|
{
|
|
|
|
|
Schema::dropIfExists('articles');
|
|
|
|
|
}
|
|
|
|
|
};
|