Skip to content

Commit d30390c

Browse files
Merge pull request laravel#34 from eurides-eu/feature/change-user-to-be-passwordless
laravel#13: Make user passwordless
2 parents 8ee2087 + b676d44 commit d30390c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
class ChangeUsersTablePasswordColumnToNullable extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up()
13+
{
14+
Schema::table('users', function (Blueprint $table) {
15+
$table->string('password')->nullable()->change();
16+
});
17+
}
18+
19+
/**
20+
* Reverse the migrations.
21+
*/
22+
public function down()
23+
{
24+
Schema::table('users', function (Blueprint $table) {
25+
$table->string('password')->nullable(false)->change();
26+
});
27+
}
28+
}

0 commit comments

Comments
 (0)