Skip to content

Commit 3be103f

Browse files
Ionut Tanasasilverbux
authored andcommitted
Fixed users table migration allowing email/password registration (silverbux#29)
* Fixed users table migration * Fixing travis build. See #14fcfcb
1 parent 1c50b46 commit 3be103f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.env.travis

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ REDIS_HOST=127.0.0.1
1717
REDIS_PASSWORD=null
1818
REDIS_PORT=6379
1919

20-
MAIL_DRIVER=smtp
20+
MAIL_DRIVER=log
2121
MAIL_HOST=mailtrap.io
2222
MAIL_PORT=2525
2323
MAIL_USERNAME=null

database/migrations/2014_10_12_000000_create_users_table.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ public function up()
1414
{
1515
Schema::create('users', function (Blueprint $table) {
1616
$table->increments('id');
17-
$table->string('oauth_provider');
18-
$table->string('oauth_provider_id');
17+
$table->string('oauth_provider')->nullable();
18+
$table->string('oauth_provider_id')->nullable();
1919
$table->string('name');
2020
$table->string('email')->unique();
2121
$table->string('password', 60);
22-
$table->string('avatar');
22+
$table->string('avatar')->nullable();
2323
$table->enum('email_verified', ['1', '0'])->default('0');
24-
$table->string('email_verification_code', 60);
24+
$table->string('email_verification_code', 60)->nullable();
2525
$table->rememberToken();
2626
$table->timestamps();
2727
});

0 commit comments

Comments
 (0)