CreateImage::up PHP Method

up() public method

Run the migrations.
public up ( ) : void
return void
    public function up()
    {
        Schema::create('imager_image', function (Blueprint $table) {
            $table->increments('id')->unsigned();
            $table->integer('imageable_id')->unsigned()->nullable();
            $table->string('imageable_type')->nullable();
            $table->string('slot')->nullable();
            $table->integer('width')->unsigned();
            $table->integer('height')->unsigned();
            $table->string('mime_type');
            $table->string('average_color', 6);
            $table->timestamps();
            //
            // Indexes
            //
            $table->unique(['imageable_id', 'imageable_type', 'slot'], 'U_imageable_slot');
        });
    }
CreateImage