%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/evablog/database/migrations/
Upload File :
Create Path :
Current File : /var/www/html/evablog/database/migrations/2018_04_22_103201_create_media_table.php

<?php

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

class CreateMediaTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('media', function (Blueprint $table) {
            $table->increments('id');
            $table->bigInteger('model_id');
            $table->string('model_type');
            $table->index(['model_id', 'model_type']);
            $table->string('collection_name');
            $table->string('name');
            $table->string('file_name');
            $table->string('mime_type')->nullable();
            $table->string('disk');
            $table->unsignedInteger('size');
            $table->longText('manipulations');
            $table->longText('custom_properties');
            $table->longText('responsive_images');
            $table->unsignedInteger('order_column')->nullable();
            $table->nullableTimestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('media');
    }
}

Zerion Mini Shell 1.0