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/2022_01_28_143514_create_fotos_table.php

<?php

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

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

            $table->string('foto', 300);

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

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

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

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