<?php

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

class CreateFaqCategoriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('faq_categories', function (Blueprint $table) {
            $table->id();
            $table->string('faqcategoryname');
            $table->longText('slug')->nullable();
            $table->boolean('status');
            $table->timestamps();
        });

        
        Schema::table('faq_list', function (Blueprint $table) {
          
            $table->bigInteger('faqcat_id')->unsigned()->nullable()->after('answer');
           
            
        });
    }

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