Files
mikeisdeving/database/migrations/2026_07_30_175544_create_education_table.php
T

35 lines
904 B
PHP
Raw Normal View History

<?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('education', function (Blueprint $table) {
$table->id();
$table->string('institution');
$table->string('degree')->nullable();
$table->string('field_of_study')->nullable();
$table->date('start_date')->nullable();
$table->date('end_date')->nullable();
$table->text('description')->nullable();
$table->unsignedInteger('sort_order')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('education');
}
};