<?php

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

class AddHasApplied extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('professionals', function (Blueprint $table) {
            $table->integer('profession_id')->nullable()->change();
            $table->string('specialty')->nullable()->change();
            $table->boolean('has_applied')->default(false)->after('specialty');
        });
        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        $table->dropColumn('profession_id','specialty','has_applied');
    }
}
