<?php

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

class AddColumnsBlockLanguagesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('block_languages', function (Blueprint $table) {
            $table->string('subtitle', 250)->nullable();
            $table->string('date', 150)->nullable();
            $table->json('cta')->nullable();
        });
    }

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