Skip to content

Commit

Permalink
[5.4] Change user_id to unsigned integer (#18557)
Browse files Browse the repository at this point in the history
In the session database table, user_id should be an unsigned integer.
  • Loading branch information
Floxxx authored and taylorotwell committed Mar 29, 2017
1 parent b4cd927 commit 6eb33e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Console/stubs/database.stub
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CreateSessionsTable extends Migration
{
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->unique();
$table->integer('user_id')->nullable();
$table->unsignedInteger('user_id')->nullable();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->text('payload');
Expand Down

0 comments on commit 6eb33e1

Please sign in to comment.