<?php

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

class DropVolumeFromIssuesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('issues', function(Blueprint $table) {
			$table->dropColumn('volume');
			$table->unique('number');
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('issues', function(Blueprint $table) {
			$table->dropIndex('issues_number_unique');
			$table->integer('number');
		});
	}

}

Drop volume and index number column on issues table
Drop volume and index number column on issues table
