<?php

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

class AddColumUserInfoTable extends Migration
{
    public function up()
    {
        Schema::table('user_infos', function (Blueprint $table){
           $table->string('certification')->nullable();
           $table->string('college')->nullable();
           $table->string('residence')->nullable();
           $table->string('question1')->nullable();
           $table->string('question2')->nullable();
           $table->string('question3')->nullable();
           $table->string('question4')->nullable();
           $table->string('question1_file')->nullable();
           $table->string('question2_file')->nullable();
           $table->string('question3_file')->nullable();
           $table->string('question4_file')->nullable();
        });
    }

    public function down()
    {
        Schema::table('user_infos', function (Blueprint $table){
            $table->dropColumn('certification');
            $table->dropColumn('college');
            $table->dropColumn('residence');
            $table->dropColumn('question1');
            $table->dropColumn('question2');
            $table->dropColumn('question3');
            $table->dropColumn('question4');
            $table->dropColumn('question1_file');
            $table->dropColumn('question2_file');
            $table->dropColumn('question3_file');
            $table->dropColumn('question4_file');
        });
    }
}
