d2d.emegrendeles.hu/database/migrations/2023_03_24_075952_create_table_tests.php
E98Developer 68b7c35bef git init
2026-02-28 06:53:05 +01:00

30 lines
603 B
PHP

<?php
use App\Database\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('tests', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->bigInteger('parent_id')->nullable();
$table->timestamps();
$table->userIdFields();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tests');
}
};