<?php

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

class ChangeFieldsOnBandsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('bands', function (Blueprint $table) {
			$table->dropColumn('members');
			$table->dropColumn('image_filename');
			$table->string('alternative_name');
			$table->string('alternative_email');
			$table->string('alternative_phone');
			$table->string('city');
			$table->string('state')->nullable();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('bands', function (Blueprint $table) {
			$table->dropColumn('alternative_name');
			$table->dropColumn('alternative_email');
			$table->dropColumn('alternative_phone');
			$table->dropColumn('city');
			$table->dropColumn('state');
			$table->text('members');
			$table->string('image_filename');
		});
	}

}
