Skip to content

Commit

Permalink
r Drop login column
Browse files Browse the repository at this point in the history
  • Loading branch information
dusterio committed Dec 6, 2016
1 parent bcb7e4a commit ef52c71
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions database/migrations/2016_12_06_000000_remove_login_column.php
@@ -0,0 +1,32 @@
<?php

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

class RemoveLoginColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('login');
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::create('users', function (Blueprint $table) {
$table->string('login', 64)->unique();
});
}
}

0 comments on commit ef52c71

Please sign in to comment.