<?php

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

class AddSomeColumnIntoSliderDetails extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('slider_details', function (Blueprint $table) {
            $table->smallInteger('is_shadow')->default(0)->after('border');
            $table->smallInteger('is_blur')->default(0)->after('border');
            $table->smallInteger('overlay_opacity')->default(0)->after('border');
            $table->smallInteger('overlay_size')->default(0)->after('border');
            $table->string('overlay_color')->default('#FFF')->after('border');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('slider_details', function (Blueprint $table) {
            $table->dropColumn('is_shadow');
            $table->dropColumn('is_blur');
            $table->dropColumn('overlay_opacity');
            $table->dropColumn('overlay_size');
            $table->dropColumn('overlay_color');
        });
    }
}
