<?php

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

class AddOtherAddressAndOtherSchoolToArticles extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('articles', function (Blueprint $table) {
            $table->string('other_address')->nullable();
            $table->string('other_primary_school_1')->nullable();
            $table->string('other_secondary_school_1')->nullable();
            $table->string('other_primary_school_2')->nullable();
            $table->string('other_secondary_school_2')->nullable();
            $table->string('other_primary_school_3')->nullable();
            $table->string('other_secondary_school_3')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('articles', function (Blueprint $table) {
            $table->dropColumn('other_address');
            $table->dropColumn('other_primary_school_1');
            $table->dropColumn('other_secondary_school_1');
            $table->dropColumn('other_primary_school_2');
            $table->dropColumn('other_secondary_school_2');
            $table->dropColumn('other_primary_school_3');
            $table->dropColumn('other_secondary_school_3');
        });
    }
}
