26 lines
717 B
PHP
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');
|
|
}
|
|
};
|