<?php

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

class AddExternalContactColumns extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('blocks', function (Blueprint $table) {
            $table->string('person_name', 100)->nullable();
            $table->string('person_email', 100)->nullable();
            $table->string('company_name', 100)->nullable();
        });

        Schema::table('blocks_lang', function (Blueprint $table) {
            $table->string('person_position', 100)->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('blocks', function (Blueprint $table) {
            $table->dropColumn('person_name');
            $table->dropColumn('person_email');
            $table->dropColumn('company_name');
        });

        Schema::table('blocks_lang', function (Blueprint $table) {
            $table->dropColumn('person_position');
        });
    }
}
