执行 PHP artisan admin:install 后出现此错误,啥原因啊
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table user_addresses
add constraint user_addresses_user_id_foreign
foreign key (user_id
) references users
(id
) on delete cascade)
Exception trace:
1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint")
/home/firkat/projects/laravel-firkat/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119
2 PDOException::("SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint")
推荐文章: