Sindbad~EG File Manager

Current Path : /proc/self/cwd/common/Database/migrations/
Upload File :
Current File : //proc/self/cwd/common/Database/migrations/2018_08_07_124200_rename_uploads_to_file_entries.php

<?php

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

class RenameUploadsToFileEntries extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if (Schema::hasTable('file_entries')) return;

        Schema::table('uploads', function (Blueprint $table) {
            $table->rename('file_entries');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('file_entries', function (Blueprint $table) {
            $table->rename('uploads');
        });
    }
}

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