Skip to content

Commit

Permalink
Merge pull request laravel#34 from eurides-eu/feature/change-user-to-…
Browse files Browse the repository at this point in the history
…be-passwordless

laravel#13: Make user passwordless
  • Loading branch information
jaureguivictoria authored May 7, 2018
2 parents 8ee2087 + b676d44 commit d30390c
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

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

class ChangeUsersTablePasswordColumnToNullable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::table('users', function (Blueprint $table) {
$table->string('password')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->string('password')->nullable(false)->change();
});
}
}

0 comments on commit d30390c

Please sign in to comment.