MIF_E31212322/database/migrations/2024_05_19_035041_alternati...

43 lines
1.1 KiB
PHP

<?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('alternatifs', function (Blueprint $table) {
$table->id();
$table->string('kode');
$table->string('nama');
$table->string('p1')->nullable();
$table->string('p2')->nullable();
$table->string('p3')->nullable();
$table->string('p4')->nullable();
$table->string('p5')->nullable();
$table->string('p6')->nullable();
$table->string('p7')->nullable();
$table->string('p8')->nullable();
$table->string('p9')->nullable();
$table->string('p10')->nullable();
$table->float('nilai_bobot')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('alternatifs');
}
};