changeweb/Unifiedtransform

View on GitHub
database/migrations/2021_08_29_083523_create_grade_rules_table.php

Summary

Maintainability
A
1 hr
Test Coverage
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateGradeRulesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('grade_rules', function (Blueprint $table) {
            $table->id();
            $table->float('point');
            $table->string('grade');
            $table->float('start_at');
            $table->float('end_at');
            $table->unsignedInteger('grading_system_id');
            $table->unsignedInteger('session_id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('grade_rules');
    }
}