Files
lms-v2/database/migrations/2026_05_26_043346_create_exams_table.php
2026-05-30 22:15:16 +07:00

26 lines
717 B
PHP

<?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('exams', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('old_id')->nullable()->index(); // Kolom penaut data lama
$table->string('title');
$table->string('duration')->nullable(); // Dalam menit
$table->string('passing_percentage')->nullable(); // KKM Kelulusan
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('exams');
}
};