Skip to content

Commit a743d8c

Browse files
authored
[5.4] Change user_id to unsigned integer
In the session database table, user_id should be an unsigned integer.
1 parent d0be3c4 commit a743d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ When using the `database` session driver, you will need to create a table to con
4444

4545
Schema::create('sessions', function ($table) {
4646
$table->string('id')->unique();
47-
$table->integer('user_id')->nullable();
47+
$table->unsignedInteger('user_id')->nullable();
4848
$table->string('ip_address', 45)->nullable();
4949
$table->text('user_agent')->nullable();
5050
$table->text('payload');

0 commit comments

Comments
 (0)