Closed R00TR41Z closed 2 weeks ago
I can't replicate this. And the test suite, which runs a lot of migrations via fresh installs ... is passing.
What database engine are you using?
To me the problem is on seed
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Problem when trying to migrate laravel-permission migrations
Versions
PHP version: 8.3
Database version:
To Reproduce Steps to reproduce the behavior:
Create new laravel project with v10.48.4
install laravel permission v6.4
publish packege file
Here is my example code and/or tests showing the problem in my app:
Expected behavior SQLSTATE[HY000]: General error: 1005 Can't create table
Laravel
.model_has_permissions
(errno: 121 "Duplicate key on write or update") (Connection: mysql, SQL: alter tablemodel_has_permissions
add constraintmodel_has_permissions_permission_id_foreign
foreign key (permission_id
) referencespermissions
(id
) on delete cascade)Environment (please complete the following information, because it helps us investigate better):