<?php

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

class AddFooterNewsletterBlockColumns extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('footer_contents_lang', function (Blueprint $table) {
            $table->string('newsletter_title_block', 150)->nullable();
            $table->string('newsletter_short_desc_block', 255)->nullable();
            $table->text('newsletter_cta_block')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('footer_contents_lang', function (Blueprint $table) {
            $table->dropColumn('newsletter_title_block');
            $table->dropColumn('newsletter_short_desc_block');
            $table->dropColumn('newsletter_cta_block');
        });
    }
}
