<?php

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

class AddBlockColumns extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('block_languages', function (Blueprint $table) {
            $table->string('pre_title')->nullable();
            $table->text('cta_1')->nullable();
            $table->text('cta_2')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('block_languages', function (Blueprint $table) {
            $table->dropColumn('pre_title');
            $table->dropColumn('cta_1');
            $table->dropColumn('cta_2');
        });
    }
}
