Sindbad~EG File Manager

Current Path : /var/www/html/xfacil.desafio.com.py/database/migrations/
Upload File :
Current File : /var/www/html/xfacil.desafio.com.py/database/migrations/2021_07_14_152207_create_cursos_table.php

<?php

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

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

            $table->string('titulo');
            $table->string('logo', 300)->nullable();
            $table->integer('porcentaje');
            $table->date('fincurso');
            $table->boolean('estado')->default(1);

            $table->unsignedBigInteger('categoria_id');
            $table->foreign('categoria_id')->references('id')->on('cursocategorias');

            $table->timestamps();
        });
    }

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

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