<?php

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

class AlterTableConsolidation extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('consolidations', function($table) {
            $table->dropColumn('description');
            $table->enum('region', ['AUVERGNE_RHONE_ALPES', 'BOURGOGNE_FRANCHE_COMTE', 'BRETAGNE',
                'CENTRE_VAL_DE_LOIRE', 'CORSE', 'GRAND_EST', 'HAUTS_DE_FRANCE', 'ILE_DE_FRANCE', 'NORMANDIE',
                'NOUVELLE_AQUITAINE', 'OCCITANIE', 'PAYS_DE_LA_LOIRE', 'PROVENCE_ALPES_COTE_AZUR'])
                ->after('nom');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
