<?php

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

class CreateMenuContentLanguagesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('menu_content_languages', function (Blueprint $table) {
            $table->bigIncrements('translation_id');
            $table->unsignedBigInteger('menu_content_id');
            $table->string('language_id', 10);

            $table->string('title', 150);
            $table->text('description')->nullable();
            $table->text('cta_1')->nullable();
            $table->text('cta_2')->nullable();
            $table->string('highlight_title', 255)->nullable();;
            $table->text('highlight_cta')->nullable();
        });
    }

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