Skip to content

Commit 6eb33e1

Browse files
Floxxxtaylorotwell
authored andcommitted
[5.4] Change user_id to unsigned integer (#18557)
In the session database table, user_id should be an unsigned integer.
1 parent b4cd927 commit 6eb33e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Session/Console/stubs/database.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CreateSessionsTable extends Migration
1515
{
1616
Schema::create('sessions', function (Blueprint $table) {
1717
$table->string('id')->unique();
18-
$table->integer('user_id')->nullable();
18+
$table->unsignedInteger('user_id')->nullable();
1919
$table->string('ip_address', 45)->nullable();
2020
$table->text('user_agent')->nullable();
2121
$table->text('payload');

0 commit comments

Comments
 (0)