Sindbad~EG File Manager

Current Path : /var/www/html/edd.sumar.com.py/database/migrations/
Upload File :
Current File : /var/www/html/edd.sumar.com.py/database/migrations/2021_05_29_130733_create_competencias_table.php

<?php

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

class CreateCompetenciasTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('competencias', function (Blueprint $table) {
            $table->id();

            $table->string('com_nom');
            $table->boolean('com_estado')->default(1);

            $table->unsignedBigInteger('evaluacion_id');
            $table->foreign('evaluacion_id')->references('id')->on('evaluacions');
            
            $table->timestamps();
        });
    }

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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists