Closed Sohib closed 5 years ago
Laravel version is Laravel Framework 5.8.8
I think i know what caused this issue.
Laravel uses $table->bigIncrements('id');
for users
table while Vanilo uses the following for foreign keys $table->integer('user_id')->unsigned();
as a normal integer but it should use bigInteger
This issue is about artkonekt/user package and changes in Laravel 5.8, which is caused by this line.
$table->integer('user_id')->unsigned();
In Laravel 5.8, they changed type of id
columns from increments
to bigIncrements
in create_users_table
migration and migration stubs. They state this change in docs as:
Migrations &
bigIncrements
Likelihood Of Impact: None
It looks like it actually has impact not because they changed migration stubs but create_users_table
migration too.
If the line in artkonekt/user package is changed as follows:
- $table->integer('user_id')->unsigned();
+ $table->bigInteger('user_id')->unsigned();
the problem with Laravel 5.8 will be solved. But then unfortunately this solution will conflict with older Laravel versions.
In laravel 5.8 $table->bigIncrements('id'); $table->bigInteger('user_id')->unsigned();
Version 1.1.0 of the User Module has been released - that fixes this issue.
i'm following the installation instruction but i have encountered this issue twice, when running
php artisan migrate
i get this error message
my database is
Server version: 10.2.18-MariaDB - Homebrew