laravel-roles-permissions icon indicating copy to clipboard operation
laravel-roles-permissions copied to clipboard

Issue with migrations

Open dam-man opened this issue 4 years ago • 0 comments

You cannot add constains from a bigInt to an Int:

$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade');

In the above example the user_id = INT(10) and you're trying to reference it to the id BIGINT(20) which is not allowed in MySQLi

Same issue for the rest.

dam-man avatar Mar 15 '20 20:03 dam-man